Class ChatCache
java.lang.Object
com.zenith.cache.data.chat.ChatCache
- All Implemented Interfaces:
CachedData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChatSessionprotected com.mojang.brigadier.CommandDispatcher<CommandContext> protected CommandNode[]protected booleanprotected intprotected longprotected @Nullable net.raphimc.minecraftauth.java.model.MinecraftPlayerCertificates -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintaddPendingAck(byte[] signature) protected booleanbooleanbooleancom.mojang.brigadier.CommandDispatcher<CommandContext> intlongbyte @Nullable []voidgetPackets(@NonNull Consumer<Packet> consumer, @NonNull TcpSession session) int@Nullable net.raphimc.minecraftauth.java.model.MinecraftPlayerCertificatesinthashCode()booleanbooleanbooleanisSignableCommand(String command) Pass full raw command stringvoidreset(CacheResetType type) setChatSession(ChatSession chatSession) setCommandDispatcher(com.mojang.brigadier.CommandDispatcher<CommandContext> commandDispatcher) setCommandNodes(CommandNode[] commandNodes) setCommandTreeParsed(boolean commandTreeParsed) setEnforcesSecureChat(boolean enforcesSecureChat) setFirstCommandNodeIndex(int firstCommandNodeIndex) setLastChatTimestamp(long lastChatTimestamp) setLastPendingSignature(byte @Nullable [] lastPendingSignature) setPendingAcks(int pendingAcks) setPlayerCertificates(@Nullable net.raphimc.minecraftauth.java.model.MinecraftPlayerCertificates playerCertificates) toString()
-
Field Details
-
commandNodes
-
commandDispatcher
-
firstCommandNodeIndex
protected int firstCommandNodeIndex -
lastChatTimestamp
protected volatile long lastChatTimestamp -
enforcesSecureChat
protected boolean enforcesSecureChat -
chatSession
-
playerCertificates
protected @Nullable net.raphimc.minecraftauth.java.model.MinecraftPlayerCertificates playerCertificates
-
-
Constructor Details
-
ChatCache
public ChatCache()
-
-
Method Details
-
getPackets
- Specified by:
getPacketsin interfaceCachedData
-
reset
- Specified by:
resetin interfaceCachedData
-
getSendingMessage
- Specified by:
getSendingMessagein interfaceCachedData
-
addPendingAck
public int addPendingAck(byte[] signature) -
canUseChatSigning
public boolean canUseChatSigning() -
startNewChatSession
-
getCommandDispatcher
-
isSignableCommand
Pass full raw command string -
getCommandNodes
-
isCommandTreeParsed
public boolean isCommandTreeParsed() -
getFirstCommandNodeIndex
public int getFirstCommandNodeIndex() -
getLastChatTimestamp
public long getLastChatTimestamp() -
isEnforcesSecureChat
public boolean isEnforcesSecureChat() -
getChatSession
-
getPlayerCertificates
public @Nullable net.raphimc.minecraftauth.java.model.MinecraftPlayerCertificates getPlayerCertificates() -
getPendingAcks
public int getPendingAcks() -
getLastPendingSignature
public byte @Nullable [] getLastPendingSignature() -
setCommandNodes
- Returns:
this.
-
setCommandDispatcher
public ChatCache setCommandDispatcher(com.mojang.brigadier.CommandDispatcher<CommandContext> commandDispatcher) - Returns:
this.
-
setCommandTreeParsed
- Returns:
this.
-
setFirstCommandNodeIndex
- Returns:
this.
-
setLastChatTimestamp
- Returns:
this.
-
setEnforcesSecureChat
- Returns:
this.
-
setChatSession
- Returns:
this.
-
setPlayerCertificates
public ChatCache setPlayerCertificates(@Nullable net.raphimc.minecraftauth.java.model.MinecraftPlayerCertificates playerCertificates) - Returns:
this.
-
setPendingAcks
- Returns:
this.
-
setLastPendingSignature
- Returns:
this.
-
equals
-
canEqual
-
hashCode
-
toString
-