Package ch.njol.skript.util.chat
Class MessageComponent
java.lang.Object
ch.njol.skript.util.chat.MessageComponent
Component for chat messages. This can be serialized with GSON and then
sent to client.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanMakes text bold.@Nullable MessageComponent.ClickEvent@Nullable net.md_5.bungee.api.ChatColorColor of this text.@Nullable StringFont of the component.@Nullable MessageComponent.HoverEvent@Nullable StringValue of this, if present, will appended on what player is currently writing to chat.booleanMakes text italic.booleanMakes text obfuscated, i.e.booleanTells that this component is supposed to reset styling.booleanMakes textstrikethroughbooleanMakes texxt underlined. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
text
-
reset
public boolean resetTells that this component is supposed to reset styling. -
bold
public boolean boldMakes text bold. -
italic
public boolean italicMakes text italic. -
underlined
public boolean underlinedMakes texxt underlined. -
strikethrough
public boolean strikethroughMakes textstrikethrough -
obfuscated
public boolean obfuscatedMakes text obfuscated, i.e. each tick the client will scramble all letters with random ones. -
color
public @Nullable net.md_5.bungee.api.ChatColor colorColor of this text. Defaults to reseting it. -
insertion
Value of this, if present, will appended on what player is currently writing to chat. -
clickEvent
-
font
Font of the component. 1.16+. Null for BaseComponents means default font. -
hoverEvent
-
-
Constructor Details
-
MessageComponent
public MessageComponent()
-
-
Method Details
-
copy
-