Class MessageComponent
java.lang.Object
ch.njol.skript.util.chat.MessageComponent
Deprecated, for removal: This API element is subject to removal in a future version.
Component for chat messages. This can be serialized with GSON and then
sent to client.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version.static classDeprecated, for removal: This API element is subject to removal in a future version.static classDeprecated, for removal: This API element is subject to removal in a future version. -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.Makes text bold.@Nullable MessageComponent.ClickEventDeprecated, for removal: This API element is subject to removal in a future version.@Nullable net.md_5.bungee.api.ChatColorDeprecated, for removal: This API element is subject to removal in a future version.Color of this text.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.Font of the component.@Nullable MessageComponent.HoverEventDeprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.Value of this, if present, will appended on what player is currently writing to chat.booleanDeprecated, for removal: This API element is subject to removal in a future version.Makes text italic.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Makes text obfuscated, i.e.booleanDeprecated, for removal: This API element is subject to removal in a future version.Tells that this component is supposed to reset styling.booleanDeprecated, for removal: This API element is subject to removal in a future version.Makes textstrikethroughDeprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Makes texxt underlined. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
text
Deprecated, for removal: This API element is subject to removal in a future version. -
reset
public boolean resetDeprecated, for removal: This API element is subject to removal in a future version.Tells that this component is supposed to reset styling. -
bold
public boolean boldDeprecated, for removal: This API element is subject to removal in a future version.Makes text bold. -
italic
public boolean italicDeprecated, for removal: This API element is subject to removal in a future version.Makes text italic. -
underlined
public boolean underlinedDeprecated, for removal: This API element is subject to removal in a future version.Makes texxt underlined. -
strikethrough
public boolean strikethroughDeprecated, for removal: This API element is subject to removal in a future version.Makes textstrikethrough -
obfuscated
public boolean obfuscatedDeprecated, for removal: This API element is subject to removal in a future version.Makes 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 colorDeprecated, for removal: This API element is subject to removal in a future version.Color of this text. Defaults to reseting it. -
insertion
Deprecated, for removal: This API element is subject to removal in a future version.Value of this, if present, will appended on what player is currently writing to chat. -
clickEvent
Deprecated, for removal: This API element is subject to removal in a future version. -
font
Deprecated, for removal: This API element is subject to removal in a future version.Font of the component. 1.16+. Null for BaseComponents means default font. -
translation
Deprecated, for removal: This API element is subject to removal in a future version. -
keybind
Deprecated, for removal: This API element is subject to removal in a future version. -
hoverEvent
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
MessageComponent
public MessageComponent()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
copy
Deprecated, for removal: This API element is subject to removal in a future version.
-
TextComponentParser.