Package org.bukkit.event.player
Class PlayerRecipeBookClickEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerRecipeBookClickEvent
Deprecated, for removal: This API element is subject to removal in a future version.
Called when a player clicks a recipe in the recipe book.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerRecipeBookClickEvent(@NotNull Player player, @NotNull Recipe recipe, boolean shiftClick) Deprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier and TypeMethodDescriptionstatic @NotNull HandlerListDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Gets the original recipe the player was trying to craft.Deprecated, for removal: This API element is subject to removal in a future version.Gets the recipe the player is trying to craft.booleanDeprecated, for removal: This API element is subject to removal in a future version.If true the game will attempt to move the ingredients for as many copies of this recipe as possible into the appropriate slots, otherwise only 1 copy will be moved.voidDeprecated, for removal: This API element is subject to removal in a future version.Set the recipe that will be used.voidsetShiftClick(boolean shiftClick) Deprecated, for removal: This API element is subject to removal in a future version.Sets if the game will attempt to move the ingredients for as many copies of this recipe as possible into the appropriate slots.Methods inherited from class org.bukkit.event.player.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details
- 
Method Details- 
getOriginalRecipeDeprecated, for removal: This API element is subject to removal in a future version.Gets the original recipe the player was trying to craft.
 This will not reflect any changes made withsetRecipe(@org.jetbrains.annotations.NotNull org.bukkit.inventory.Recipe).- Returns:
- the original recipe
 
- 
getRecipeDeprecated, for removal: This API element is subject to removal in a future version.Gets the recipe the player is trying to craft.
 This will reflect changes made withsetRecipe(@org.jetbrains.annotations.NotNull org.bukkit.inventory.Recipe).- Returns:
- the recipe
 
- 
setRecipeDeprecated, for removal: This API element is subject to removal in a future version.Set the recipe that will be used.
 The game will attempt to move the ingredients for this recipe into the appropriate slots.If the original recipe is a CraftingRecipethe provided recipe must also be aCraftingRecipe, otherwise the provided recipe must be of the same type as the original recipe.- Parameters:
- recipe- the recipe to be used
 
- 
isShiftClickpublic boolean isShiftClick()Deprecated, for removal: This API element is subject to removal in a future version.If true the game will attempt to move the ingredients for as many copies of this recipe as possible into the appropriate slots, otherwise only 1 copy will be moved.- Returns:
- whether as many copies as possible should be moved
 
- 
setShiftClickpublic void setShiftClick(boolean shiftClick) Deprecated, for removal: This API element is subject to removal in a future version.Sets if the game will attempt to move the ingredients for as many copies of this recipe as possible into the appropriate slots.- Parameters:
- shiftClick- whether as many copies as possible should be moved
 
- 
getHandlersDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- getHandlersin class- Event
 
- 
getHandlerListDeprecated, for removal: This API element is subject to removal in a future version.
 
- 
PlayerRecipeBookClickEvent