Package net.minestom.server.event.player
Class AdvancementTabEvent
java.lang.Object
net.minestom.server.event.player.AdvancementTabEvent
- All Implemented Interfaces:
Event,EntityEvent,EntityInstanceEvent,InstanceEvent,PlayerEvent,PlayerInstanceEvent
Called when a
Player opens the advancement screens or switch the tab
and when he closes the screen.-
Constructor Summary
ConstructorsConstructorDescriptionAdvancementTabEvent(@NotNull Player player, @NotNull AdvancementAction action, @NotNull String tabId) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minestom.server.event.trait.EntityInstanceEvent
getInstanceMethods inherited from interface net.minestom.server.event.trait.PlayerEvent
getEntity
-
Constructor Details
-
AdvancementTabEvent
public AdvancementTabEvent(@NotNull @NotNull Player player, @NotNull @NotNull AdvancementAction action, @NotNull @NotNull String tabId)
-
-
Method Details
-
getAction
Gets the action.- Returns:
- the action
-
getTabId
Gets the tab id.Not null ony if
getAction()is equal toAdvancementAction.OPENED_TAB.- Returns:
- the tab id
-
getPlayer
Description copied from interface:PlayerEventGets the player.- Specified by:
getPlayerin interfacePlayerEvent- Returns:
- the player
-