Class ChatTypeDecoration
java.lang.Object
com.github.retrooper.packetevents.protocol.chat.ChatTypeDecoration
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionChatTypeDecoration(String translationKey, List<ChatTypeDecoration.Parameter> parameters, net.kyori.adventure.text.format.Style style) -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatTypeDecorationdecode(NBT nbt, ClientVersion version) net.kyori.adventure.text.Componentdecorate(net.kyori.adventure.text.Component component, ChatType.Bound chatType) static NBTencode(ChatTypeDecoration decoration, ClientVersion version) booleannet.kyori.adventure.text.format.StylegetStyle()inthashCode()static ChatTypeDecorationincomingDirectMessage(String translationKey) static ChatTypeDecorationoutgoingDirectMessage(String translationKey) static ChatTypeDecorationread(PacketWrapper<?> wrapper) static ChatTypeDecorationteamMessage(String translationKey) static ChatTypeDecorationwithSender(String translationKey) static voidwrite(PacketWrapper<?> wrapper, ChatTypeDecoration decoration)
-
Constructor Details
-
ChatTypeDecoration
public ChatTypeDecoration(String translationKey, List<ChatTypeDecoration.Parameter> parameters, net.kyori.adventure.text.format.Style style)
-
-
Method Details
-
read
-
write
-
decode
-
encode
-
withSender
-
incomingDirectMessage
-
outgoingDirectMessage
-
teamMessage
-
decorate
public net.kyori.adventure.text.Component decorate(net.kyori.adventure.text.Component component, ChatType.Bound chatType) -
getTranslationKey
-
getParameters
-
getStyle
public net.kyori.adventure.text.format.Style getStyle() -
equals
-
hashCode
public int hashCode()
-