Class ClientInfoCache

java.lang.Object
com.zenith.cache.data.info.ClientInfoCache
All Implemented Interfaces:
CachedData

public class ClientInfoCache extends Object implements CachedData
  • Constructor Details

    • ClientInfoCache

      public ClientInfoCache()
  • Method Details

    • getPackets

      public void getPackets(@NonNull Consumer<Packet> consumer, @NonNull TcpSession session)
      Specified by:
      getPackets in interface CachedData
    • getClientInfoPacket

      public Packet getClientInfoPacket()
    • reset

      public void reset(CacheResetType type)
      Specified by:
      reset in interface CachedData
    • getLocale

      public String getLocale()
    • getRenderDistance

      public int getRenderDistance()
    • getChatVisibility

      public ChatVisibility getChatVisibility()
    • isChatColors

      public boolean isChatColors()
    • getSkinParts

      public List<SkinPart> getSkinParts()
    • getHandPreference

      public HandPreference getHandPreference()
    • isTextFilteringEnabled

      public boolean isTextFilteringEnabled()
    • isAllowsListing

      public boolean isAllowsListing()
    • getParticleStatus

      public ParticleStatus getParticleStatus()
    • setLocale

      public ClientInfoCache setLocale(String locale)
      Returns:
      this.
    • setRenderDistance

      public ClientInfoCache setRenderDistance(int renderDistance)
      Returns:
      this.
    • setChatVisibility

      public ClientInfoCache setChatVisibility(ChatVisibility chatVisibility)
      Returns:
      this.
    • setChatColors

      public ClientInfoCache setChatColors(boolean chatColors)
      Returns:
      this.
    • setSkinParts

      public ClientInfoCache setSkinParts(List<SkinPart> skinParts)
      Returns:
      this.
    • setHandPreference

      public ClientInfoCache setHandPreference(HandPreference handPreference)
      Returns:
      this.
    • setTextFilteringEnabled

      public ClientInfoCache setTextFilteringEnabled(boolean textFilteringEnabled)
      Returns:
      this.
    • setAllowsListing

      public ClientInfoCache setAllowsListing(boolean allowsListing)
      Returns:
      this.
    • setParticleStatus

      public ClientInfoCache setParticleStatus(ParticleStatus particleStatus)
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object