程序包 org.bukkit.event.player

# 类 PlayerRecipeBookClickEvent

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

public class PlayerRecipeBookClickEvent extends PlayerEvent
Called when a player clicks a recipe in the recipe book.

- ## 嵌套类概要

  ## 从类继承的嵌套类/接口 org.bukkit.event.Event

  `Event.Result`

- ## 字段概要

  ### 从类继承的字段 org.bukkit.event.player.PlayerEvent

  `player`

- ## 构造器概要

  构造器
  构造器
  说明
  `PlayerRecipeBookClickEvent(@NotNull Player player, @NotNull Recipe recipe, boolean shiftClick)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `static @NotNull HandlerList`
  `getHandlerList()`
  `@NotNull HandlerList`
  `getHandlers()`
  `@NotNull Recipe`
  `getOriginalRecipe()`
  Gets the original recipe the player was trying to craft.
  `@NotNull Recipe`
  `getRecipe()`
  Gets the recipe the player is trying to craft.
  `boolean`
  `isShiftClick()`
  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.
  `void`
  `setRecipe(@NotNull Recipe recipe)`
  Set the recipe that will be used.
  `void`
  `setShiftClick(boolean shiftClick)`
  Sets if the game will attempt to move the ingredients for as many copies of this recipe as possible into the appropriate slots.

  ### 从类继承的方法 org.bukkit.event.player.PlayerEvent

  `getPlayer`

  ### 从类继承的方法 org.bukkit.event.Event

  `getEventName, isAsynchronous`

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### PlayerRecipeBookClickEvent

    public PlayerRecipeBookClickEvent(@NotNull @NotNull Player player, @NotNull @NotNull Recipe recipe, boolean shiftClick)

- ## 方法详细资料

  - ### getOriginalRecipe

    @NotNull public @NotNull Recipe getOriginalRecipe()
    Gets the original recipe the player was trying to craft.
    This will not reflect any changes made with `setRecipe(@org.jetbrains.annotations.NotNull org.bukkit.inventory.Recipe)`.
    返回:
      the original recipe

  - ### getRecipe

    @NotNull public @NotNull Recipe getRecipe()
    Gets the recipe the player is trying to craft.
    This will reflect changes made with `setRecipe(@org.jetbrains.annotations.NotNull org.bukkit.inventory.Recipe)`.
    返回:
      the recipe

  - ### setRecipe

    public void setRecipe(@NotNull @NotNull Recipe recipe)
    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 `CraftingRecipe` the provided recipe must also be a `CraftingRecipe`, otherwise the provided recipe must be of the same type as the original recipe.

    参数:
      `recipe` - the recipe to be used

  - ### isShiftClick

    public boolean isShiftClick()
    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.
    返回:
      whether as many copies as possible should be moved

  - ### setShiftClick

    public void setShiftClick(boolean shiftClick)
    Sets if the game will attempt to move the ingredients for as many copies of this recipe as possible into the appropriate slots.
    参数:
      `shiftClick` - whether as many copies as possible should be moved

  - ### getHandlers

    @NotNull public @NotNull HandlerList getHandlers()
    指定者:
      `getHandlers` 在类中 `Event`

  - ### getHandlerList

    @NotNull public static @NotNull HandlerList getHandlerList()