Class AdvancementGrantEvent

java.lang.Object
org.bukkit.event.Event
eu.endercentral.crazy_advancements.event.AdvancementGrantEvent

public class AdvancementGrantEvent extends Event
  • Field Details

  • Constructor Details

  • Method Details

    • getHandlers

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

      public static HandlerList getHandlerList()
    • getManager

      public AdvancementManager getManager()
      Gets the Manager
      Returns:
      The Manager this event has been fired from
    • getAdvancement

      public Advancement getAdvancement()
      Gets the Advancement
      Returns:
      The Advancement that has been granted
    • getPlayer

      public Player getPlayer()
      Gets the Player
      Returns:
      Reciever
    • isShowToast

      public boolean isShowToast()
      Gets whether a toast will be shown
      Returns:
      true if a toast will be shown
    • setShowToast

      public void setShowToast(boolean showToast)
      Sets if a toast will be shown
      Parameters:
      showToast - Whether toast should be shown
    • isDisplayMessage

      public boolean isDisplayMessage()
      Gets whether a message will be displayed
      Returns:
      true if a message will be displayed
    • setDisplayMessage

      public void setDisplayMessage(boolean displayMessage)
      Sets if a message will be displayed
      Parameters:
      displayMessage - Whethere message should be displayed