Class StatusScreenEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.statusscreen.StatusScreenEvent
- Direct Known Subclasses:
NationStatusScreenEvent,ResidentStatusScreenEvent,TownBlockStatusScreenEvent,TownStatusScreenEvent
public class StatusScreenEvent
extends org.bukkit.event.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the line to the status screen, with a unique key.voidAdds the line to the status screen, with a unique key.voidAdds the line to the status screen, with the specified key
Lines added via this event are added on new lines, in order to add components on the same line useStatusScreen.addComponentOf(String, Component).voidaddLine(net.kyori.adventure.text.Component line) Adds the line to the status screen, with a unique key.voidaddLines(Collection<net.kyori.adventure.text.Component> lines) Adds all lines to the status screen, with unique keys.voidAdds all lines to the status screen, with unique keys.org.bukkit.command.CommandSenderstatic org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
StatusScreenEvent
-
-
Method Details
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getStatusScreen
- Returns:
StatusScreenobject which will be shown to the CommandSender.
-
getCommandSender
public org.bukkit.command.CommandSender getCommandSender()- Returns:
- the CommandSender who is going to see the StatusScreen
-
addLines
Adds all lines to the status screen, with unique keys.
Lines added via this event are added on new lines, in order to add components on the same line useStatusScreen.addComponentOf(String, String).- Parameters:
lines- The line(s) to add.- See Also:
-
addLine
Adds the line to the status screen, with a unique key.
Lines added via this event are added on new lines, in order to add components on the same line useStatusScreen.addComponentOf(String, String).- Parameters:
line- The line to add- See Also:
-
addLine
Adds the line to the status screen, with a unique key.
Lines added via this event are added on new lines, in order to add components on the same line useStatusScreen.addComponentOf(String, String).- Parameters:
key- The key/name of the component to add.line- The line to add.
-
addLines
Adds all lines to the status screen, with unique keys.
Lines added via this event are added on new lines, in order to add components on the same line useStatusScreen.addComponentOf(String, Component).- Parameters:
lines- The line(s) to add.- See Also:
-
addLine
public void addLine(net.kyori.adventure.text.Component line) Adds the line to the status screen, with a unique key.
Lines added via this event are added on new lines, in order to add components on the same line useStatusScreen.addComponentOf(String, Component).- Parameters:
line- The line to add.- See Also:
-
addLine
Adds the line to the status screen, with the specified key
Lines added via this event are added on new lines, in order to add components on the same line useStatusScreen.addComponentOf(String, Component).- Parameters:
key- Key/name of the component to add.line- The line to add.- See Also:
-