Class ChatMessage_v1_19_1
java.lang.Object
com.github.retrooper.packetevents.protocol.chat.message.ChatMessage
com.github.retrooper.packetevents.protocol.chat.message.ChatMessage_v1_16
com.github.retrooper.packetevents.protocol.chat.message.ChatMessage_v1_19_1
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated. -
Constructor Summary
ConstructorDescriptionChatMessage_v1_19_1
(String plainContent, net.kyori.adventure.text.Component decoratedChatContent, @Nullable net.kyori.adventure.text.Component unsignedChatContent, UUID senderUUID, ChatType.Bound chatFormatting, byte @Nullable [] previousSignature, byte[] signature, Instant timestamp, long salt, LastSeenMessages lastSeenMessages, FilterMask filterMask) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.byte @Nullable []
long
getSalt()
byte[]
getType()
@Nullable net.kyori.adventure.text.Component
boolean
void
setChatFormatting
(ChatType.Bound chatFormatting) void
setChatType
(ChatType.Bound chatFormatting) Deprecated.void
setFilterMask
(FilterMask filterMask) void
setLastSeenMessages
(LastSeenMessages lastSeenMessages) void
setPlainContent
(String plainContent) void
setPreviousSignature
(byte @Nullable [] previousSignature) void
setSalt
(long salt) void
setSignature
(byte[] signature) void
setTimestamp
(Instant timestamp) void
void
setUnsignedChatContent
(@Nullable net.kyori.adventure.text.Component unsignedChatContent) Methods inherited from class com.github.retrooper.packetevents.protocol.chat.message.ChatMessage_v1_16
getSenderUUID, setSenderUUID
Methods inherited from class com.github.retrooper.packetevents.protocol.chat.message.ChatMessage
getChatContent, setChatContent
-
Constructor Details
-
ChatMessage_v1_19_1
public ChatMessage_v1_19_1(String plainContent, net.kyori.adventure.text.Component decoratedChatContent, @Nullable @Nullable net.kyori.adventure.text.Component unsignedChatContent, UUID senderUUID, ChatType.Bound chatFormatting, byte @Nullable [] previousSignature, byte[] signature, Instant timestamp, long salt, LastSeenMessages lastSeenMessages, FilterMask filterMask)
-
-
Method Details
-
getPlainContent
-
setPlainContent
-
isChatContentDecorated
public boolean isChatContentDecorated() -
getUnsignedChatContent
@Nullable public @Nullable net.kyori.adventure.text.Component getUnsignedChatContent() -
setUnsignedChatContent
public void setUnsignedChatContent(@Nullable @Nullable net.kyori.adventure.text.Component unsignedChatContent) -
getType
- Overrides:
getType
in classChatMessage
-
setType
- Overrides:
setType
in classChatMessage
-
getChatFormatting
-
setChatFormatting
-
getChatType
Deprecated.Retrieves the chat formatting. Please refer togetChatFormatting()
- Returns:
- chat formatting which contains the actual chat type.
-
setChatType
Deprecated.Sets the chat formatting. Please refer tosetChatFormatting(com.github.retrooper.packetevents.protocol.chat.ChatType.Bound)
- Parameters:
chatFormatting
- formatting which contains the actual chat type.
-
getPreviousSignature
public byte @Nullable [] getPreviousSignature() -
setPreviousSignature
public void setPreviousSignature(byte @Nullable [] previousSignature) -
getSignature
public byte[] getSignature() -
setSignature
public void setSignature(byte[] signature) -
getTimestamp
-
setTimestamp
-
getSalt
public long getSalt() -
setSalt
public void setSalt(long salt) -
getLastSeenMessages
-
setLastSeenMessages
-
getFilterMask
-
setFilterMask
-