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
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Makes text bold.@Nullable MessageComponent.ClickEvent
@Nullable net.md_5.bungee.api.ChatColor
Color of this text.@Nullable String
Font of the component.@Nullable MessageComponent.HoverEvent
@Nullable String
Value of this, if present, will appended on what player is currently writing to chat.boolean
Makes text italic.@Nullable String
boolean
Makes text obfuscated, i.e.boolean
Tells that this component is supposed to reset styling.boolean
Makes textstrikethrough@Nullable String
boolean
Makes texxt underlined. -
Constructor Summary
-
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
@Nullable 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. -
translation
-
keybind
-
hoverEvent
-
-
Constructor Details
-
MessageComponent
public MessageComponent()
-
-
Method Details
-
copy
-