Class AdvancementTabChangeEvent

java.lang.Object
org.bukkit.event.Event
eu.endercentral.crazy_advancements.event.AdvancementTabChangeEvent
All Implemented Interfaces:
Cancellable

public class AdvancementTabChangeEvent extends Event implements Cancellable
Called when a Player opens their Advancement Screen or changes their Advancement Tab
Author:
Axel
  • Field Details

  • Constructor Details

    • AdvancementTabChangeEvent

      public AdvancementTabChangeEvent(Player player, NameKey tabAdvancement)
      Constructor for instantiating this Event
      Parameters:
      player - The Player
      tabAdvancement - The selected Tab
  • Method Details

    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface Cancellable
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • getPlayer

      public Player getPlayer()
      Gets the Player
      Returns:
      The Player
    • getTabAdvancement

      public NameKey getTabAdvancement()
      Gets the selected Tab
      Returns:
      The selected Tab
    • setTabAdvancement

      public void setTabAdvancement(NameKey tabAdvancement)
      Changes the tab the player is changing to
      Parameters:
      tabAdvancement - The new tab the player will change to
    • getInformationString

      public String getInformationString()
      Gets an informative String for debugging purposes
      Returns:
      Information about this event