Package net.minestom.server.event.player
Class AdvancementTabEvent
java.lang.Object
net.minestom.server.event.Event
net.minestom.server.event.player.AdvancementTabEvent
public class AdvancementTabEvent extends Event
Called when a
Player
opens the advancement screens or switch the tab
and when he closes the screen.-
Constructor Summary
Constructors Constructor Description AdvancementTabEvent(Player player, AdvancementAction action, java.lang.String tabId)
-
Method Summary
-
Constructor Details
-
AdvancementTabEvent
public AdvancementTabEvent(@NotNull Player player, @NotNull AdvancementAction action, @NotNull java.lang.String tabId)
-
-
Method Details
-
getPlayer
Gets thePlayer
responsible for the event.- Returns:
- the player
-
getAction
Gets the action.- Returns:
- the action
-
getTabId
@NotNull public java.lang.String getTabId()Gets the tab id.Not null ony if
getAction()
is equal toAdvancementAction.OPENED_TAB
.- Returns:
- the tab id
-