Class ChatCache
java.lang.Object
com.zenith.cache.data.chat.ChatCache
- All Implemented Interfaces:
CachedData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable ChatSessionprotected CommandNode[]protected booleanprotected intprotected longprotected @Nullable net.raphimc.minecraftauth.step.java.StepPlayerCertificates.PlayerCertificates -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanboolean@Nullable ChatSessionintlongvoidgetPackets(@NonNull Consumer<Packet> consumer, @NonNull TcpSession session) @Nullable net.raphimc.minecraftauth.step.java.StepPlayerCertificates.PlayerCertificatesinthashCode()booleanvoidreset(CacheResetType type) setChatSession(@Nullable ChatSession chatSession) setCommandNodes(CommandNode[] commandNodes) setEnforcesSecureChat(boolean enforcesSecureChat) setFirstCommandNodeIndex(int firstCommandNodeIndex) setLastChatTimestamp(long lastChatTimestamp) setPlayerCertificates(@Nullable net.raphimc.minecraftauth.step.java.StepPlayerCertificates.PlayerCertificates playerCertificates) toString()
-
Field Details
-
commandNodes
-
firstCommandNodeIndex
protected int firstCommandNodeIndex -
lastChatTimestamp
protected volatile long lastChatTimestamp -
enforcesSecureChat
protected boolean enforcesSecureChat -
chatSession
-
playerCertificates
protected @Nullable net.raphimc.minecraftauth.step.java.StepPlayerCertificates.PlayerCertificates playerCertificates
-
-
Constructor Details
-
ChatCache
public ChatCache()
-
-
Method Details
-
getPackets
- Specified by:
getPacketsin interfaceCachedData
-
reset
- Specified by:
resetin interfaceCachedData
-
getSendingMessage
- Specified by:
getSendingMessagein interfaceCachedData
-
canUseChatSigning
public boolean canUseChatSigning() -
startNewChatSession
-
getCommandNodes
-
getFirstCommandNodeIndex
public int getFirstCommandNodeIndex() -
getLastChatTimestamp
public long getLastChatTimestamp() -
isEnforcesSecureChat
public boolean isEnforcesSecureChat() -
getChatSession
-
getPlayerCertificates
public @Nullable net.raphimc.minecraftauth.step.java.StepPlayerCertificates.PlayerCertificates getPlayerCertificates() -
setCommandNodes
- Returns:
this.
-
setFirstCommandNodeIndex
- Returns:
this.
-
setLastChatTimestamp
- Returns:
this.
-
setEnforcesSecureChat
- Returns:
this.
-
setChatSession
- Returns:
this.
-
setPlayerCertificates
public ChatCache setPlayerCertificates(@Nullable net.raphimc.minecraftauth.step.java.StepPlayerCertificates.PlayerCertificates playerCertificates) - Returns:
this.
-
equals
-
canEqual
-
hashCode
-
toString
-