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)
|
@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 action,
@Nullable java.lang.String value)
|
@NotNull net.md_5.bungee.api.chat.BaseComponent[] |
build()
Runs
ComponentBuilder.create() and returns the result (BaseComponent[]) |
@NotNull net.md_5.bungee.api.chat.ComponentBuilder |
getBuilder()
Gets the
ComponentBuilder of the AnnoyingJSON instance |
public AnnoyingJSON()
AnnoyingJSON instance
Only exists to give the constructor a Javadoc
@NotNull public @NotNull net.md_5.bungee.api.chat.ComponentBuilder getBuilder()
ComponentBuilder of the AnnoyingJSON instanceComponentBuilder of the AnnoyingJSON instance@NotNull public @NotNull net.md_5.bungee.api.chat.BaseComponent[] build()
ComponentBuilder.create() and returns the result (BaseComponent[])ComponentBuilder.create() (BaseComponent[])@NotNull public @NotNull AnnoyingJSON append(@NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent component)
component - the component to appendAnnoyingJSON instance@NotNull public @NotNull AnnoyingJSON append(@NotNull @NotNull java.lang.String display)
display - the String to appendAnnoyingJSON 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, @Nullable @Nullable java.lang.String hover, @Nullable net.md_5.bungee.api.chat.ClickEvent.Action action, @Nullable @Nullable java.lang.String value)
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 text to setaction - the ClickEvent action to setvalue - the ClickEvent value to setAnnoyingJSON instance