public class AnnoyingJSON
extends java.lang.Object
BaseComponent[])| Constructor and Description |
|---|
AnnoyingJSON()
Constructs a new
AnnoyingJSON instance |
| Modifier and Type | Method and Description |
|---|---|
@NotNull AnnoyingJSON |
append(@NotNull net.md_5.bungee.api.chat.BaseComponent component)
Appends a
BaseComponent to the message |
@NotNull AnnoyingJSON |
append(@NotNull java.lang.String display)
|
@NotNull AnnoyingJSON |
append(@NotNull java.lang.String display,
@Nullable java.lang.String hover)
|
@NotNull AnnoyingJSON |
append(@NotNull java.lang.String display,
@Nullable java.lang.String hover,
net.md_5.bungee.api.chat.ClickEvent.Action clickAction,
@Nullable java.lang.String clickValue)
|
@NotNull net.md_5.bungee.api.chat.BaseComponent[] |
build()
Converts the
components to a BaseComponent array and returns it |
public AnnoyingJSON()
AnnoyingJSON instance@NotNull public @NotNull net.md_5.bungee.api.chat.BaseComponent[] build()
components to a BaseComponent array and returns itcomponents as an array@NotNull public @NotNull AnnoyingJSON append(@NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent component)
BaseComponent to the messagecomponent - the BaseComponent to appendAnnoyingJSON instance@NotNull public @NotNull AnnoyingJSON append(@NotNull @NotNull java.lang.String display, @Nullable @Nullable java.lang.String hover, @Nullable net.md_5.bungee.api.chat.ClickEvent.Action clickAction, @Nullable @Nullable java.lang.String clickValue)
String (ChatColors translated) to the ComponentBuilder of the AnnoyingJSON instance
Also sets the HoverEvent and ClickEvent of the appended TextComponent
display - the String to appendhover - the HoverEvent value to setclickAction - the ClickEvent.Action to setclickValue - the ClickEvent value to setAnnoyingJSON instance@NotNull public @NotNull AnnoyingJSON append(@NotNull @NotNull java.lang.String display, @Nullable @Nullable java.lang.String hover)
String (ChatColors translated) to the ComponentBuilder of the AnnoyingJSON instance
Also sets the HoverEvent of the appended TextComponent
display - the String to appendhover - the HoverEvent text to setAnnoyingJSON instance@NotNull public @NotNull AnnoyingJSON append(@NotNull @NotNull java.lang.String display)
display - the String to appendAnnoyingJSON instance