Class AdvancementTabChangeEvent
java.lang.Object
org.bukkit.event.Event
eu.endercentral.crazy_advancements.event.AdvancementTabChangeEvent
- All Implemented Interfaces:
Cancellable
Called when a Player opens their Advancement Screen or changes their Advancement Tab
- Author:
- Axel
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAdvancementTabChangeEvent
(Player player, NameKey tabAdvancement) Constructor for instantiating this Event -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Gets an informative String for debugging purposesGets the PlayerGets the selected Tabboolean
void
setCancelled
(boolean cancelled) void
setTabAdvancement
(NameKey tabAdvancement) Changes the tab the player is changing toMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Field Details
-
handlers
-
-
Constructor Details
-
AdvancementTabChangeEvent
Constructor for instantiating this Event- Parameters:
player
- The PlayertabAdvancement
- The selected Tab
-
-
Method Details
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceCancellable
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
getPlayer
Gets the Player- Returns:
- The Player
-
getTabAdvancement
Gets the selected Tab- Returns:
- The selected Tab
-
setTabAdvancement
Changes the tab the player is changing to- Parameters:
tabAdvancement
- The new tab the player will change to
-
getInformationString
Gets an informative String for debugging purposes- Returns:
- Information about this event
-