Class ChatMessage_v1_19_3
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_3
-
Constructor Summary
ConstructorDescriptionChatMessage_v1_19_3
(UUID senderUUID, int index, byte[] signature, String plainContent, Instant timestamp, long salt, LastSeenMessages.Packed lastSeenMessagesPacked, @Nullable net.kyori.adventure.text.Component unsignedChatContent, FilterMask filterMask, ChatType.Bound chatFormatting) -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.Component
Deprecated.int
getIndex()
long
getSalt()
byte[]
Optional
<net.kyori.adventure.text.Component> void
setChatContent
(net.kyori.adventure.text.Component chatContent) Deprecated.void
setChatFormatting
(ChatType.Bound chatFormatting) void
setChatType
(ChatType.Bound chatFormatting) Deprecated.void
setFilterMask
(FilterMask filterMask) void
setIndex
(int index) void
setLastSeenMessagesPacked
(LastSeenMessages.Packed lastSeenMessagesPacked) void
setPlainContent
(String plainContent) void
setSalt
(long salt) void
setSignature
(byte[] signature) void
setTimestamp
(Instant timestamp) 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
getType, setType
-
Constructor Details
-
ChatMessage_v1_19_3
public ChatMessage_v1_19_3(UUID senderUUID, int index, byte[] signature, String plainContent, Instant timestamp, long salt, LastSeenMessages.Packed lastSeenMessagesPacked, @Nullable @Nullable net.kyori.adventure.text.Component unsignedChatContent, FilterMask filterMask, ChatType.Bound chatFormatting)
-
-
Method Details
-
getIndex
public int getIndex() -
setIndex
public void setIndex(int index) -
getSignature
public byte[] getSignature() -
setSignature
public void setSignature(byte[] signature) -
getChatContent
public net.kyori.adventure.text.Component getChatContent()- Overrides:
getChatContent
in classChatMessage
-
setChatContent
Deprecated.- Overrides:
setChatContent
in classChatMessage
-
getPlainContent
-
setPlainContent
-
getTimestamp
-
setTimestamp
-
getSalt
public long getSalt() -
setSalt
public void setSalt(long salt) -
getLastSeenMessagesPacked
-
setLastSeenMessagesPacked
-
getUnsignedChatContent
-
setUnsignedChatContent
public void setUnsignedChatContent(@Nullable @Nullable net.kyori.adventure.text.Component unsignedChatContent) -
getFilterMask
-
setFilterMask
-
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.
-