Package org.bukkit.event.player
Class PlayerRecipeBookSettingsChangeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerRecipeBookSettingsChangeEvent
Called when a player changes recipe book settings.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enum representing the various types of recipe book.Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionPlayerRecipeBookSettingsChangeEvent
(@NotNull Player player, @NotNull PlayerRecipeBookSettingsChangeEvent.RecipeBookType recipeBookType, boolean open, boolean filtering) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList
Gets the type of recipe book the player is changing the settings for.boolean
Checks if the recipe book filter is being enabled or disabled.boolean
isOpen()
Checks if the recipe book is being opened or closed.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerRecipeBookSettingsChangeEvent
-
-
Method Details
-
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
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-