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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the line to the status screen, with a unique key.void
Adds the line to the status screen, with a unique key.void
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)
.void
addLine
(net.kyori.adventure.text.Component line) Adds the line to the status screen, with a unique key.void
addLines
(Collection<net.kyori.adventure.text.Component> lines) Adds all lines to the status screen, with unique keys.void
Adds all lines to the status screen, with unique keys.org.bukkit.command.CommandSender
static org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
Methods 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:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getStatusScreen
- Returns:
StatusScreen
object 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:
-