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
ConstructorDescriptionAdvancementTabEvent
(@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, wait
Methods inherited from interface net.minestom.server.event.trait.EntityInstanceEvent
getInstance
Methods 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:PlayerEvent
Gets the player.- Specified by:
getPlayer
in interfacePlayerEvent
- Returns:
- the player
-