Class PlayerRecipeBookSettingsChangeEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerRecipeBookSettingsChangeEvent

public class PlayerRecipeBookSettingsChangeEvent extends PlayerEvent
Called when a player changes recipe book settings.
  • Constructor Details

  • Method Details

    • getRecipeBookType

      @NotNull public PlayerRecipeBookSettingsChangeEvent.RecipeBookType getRecipeBookType()
      Gets the type of recipe book the player is changing the settings for.
      Returns:
      the type of recipe book
    • isOpen

      public boolean isOpen()
      Checks if the recipe book is being opened or closed.
      Returns:
      true if opening
    • isFiltering

      public boolean isFiltering()
      Checks if the recipe book filter is being enabled or disabled.
      Returns:
      true if enabling
    • getHandlers

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

      @NotNull public static HandlerList getHandlerList()