Class ChatCache

java.lang.Object
com.zenith.cache.data.chat.ChatCache
All Implemented Interfaces:
CachedData

public class ChatCache extends Object implements CachedData
  • Field Details

    • commandNodes

      protected CommandNode[] commandNodes
    • firstCommandNodeIndex

      protected int firstCommandNodeIndex
    • lastChatTimestamp

      protected volatile long lastChatTimestamp
    • enforcesSecureChat

      protected boolean enforcesSecureChat
    • chatSession

      protected @Nullable ChatSession chatSession
    • playerCertificates

      protected @Nullable net.raphimc.minecraftauth.step.java.StepPlayerCertificates.PlayerCertificates playerCertificates
  • Constructor Details

    • ChatCache

      public ChatCache()
  • Method Details

    • getPackets

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

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

      public String getSendingMessage()
      Specified by:
      getSendingMessage in interface CachedData
    • canUseChatSigning

      public boolean canUseChatSigning()
    • startNewChatSession

      public ChatSession startNewChatSession()
    • getCommandNodes

      public CommandNode[] getCommandNodes()
    • getFirstCommandNodeIndex

      public int getFirstCommandNodeIndex()
    • getLastChatTimestamp

      public long getLastChatTimestamp()
    • isEnforcesSecureChat

      public boolean isEnforcesSecureChat()
    • getChatSession

      public @Nullable ChatSession getChatSession()
    • getPlayerCertificates

      public @Nullable net.raphimc.minecraftauth.step.java.StepPlayerCertificates.PlayerCertificates getPlayerCertificates()
    • setCommandNodes

      public ChatCache setCommandNodes(CommandNode[] commandNodes)
      Returns:
      this.
    • setFirstCommandNodeIndex

      public ChatCache setFirstCommandNodeIndex(int firstCommandNodeIndex)
      Returns:
      this.
    • setLastChatTimestamp

      public ChatCache setLastChatTimestamp(long lastChatTimestamp)
      Returns:
      this.
    • setEnforcesSecureChat

      public ChatCache setEnforcesSecureChat(boolean enforcesSecureChat)
      Returns:
      this.
    • setChatSession

      public ChatCache setChatSession(@Nullable ChatSession chatSession)
      Returns:
      this.
    • setPlayerCertificates

      public ChatCache setPlayerCertificates(@Nullable net.raphimc.minecraftauth.step.java.StepPlayerCertificates.PlayerCertificates playerCertificates)
      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