类 PlayerRecipeBookClickEvent
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
Event.Result -
字段概要
从类继承的字段 org.bukkit.event.player.PlayerEvent
player -
构造器概要
构造器构造器说明PlayerRecipeBookClickEvent(@NotNull Player player, @NotNull Recipe recipe, boolean shiftClick) -
方法概要
修饰符和类型方法说明static @NotNull HandlerList获取玩家尝试制作的原始配方.获取玩家尝试制作的配方.boolean如果为 true,游戏将尝试将尽可能多的此配方的材料移动到适当的槽位中,否则只移动 1 份.void设置将要使用的配方.voidsetShiftClick(boolean shiftClick) 设置游戏是否尝试将尽可能多的此配方的材料移动到适当的槽位中.从类继承的方法 org.bukkit.event.player.PlayerEvent
getPlayer从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
PlayerRecipeBookClickEvent
-
-
方法详细资料
-
getOriginalRecipe
获取玩家尝试制作的原始配方.
这不会反映通过setRecipe(@org.jetbrains.annotations.NotNull org.bukkit.inventory.Recipe)进行的任何更改.原文: 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).- 返回:
- 原始配方
-
getRecipe
获取玩家尝试制作的配方.
这会反映通过setRecipe(@org.jetbrains.annotations.NotNull org.bukkit.inventory.Recipe)进行的更改.原文: Gets the recipe the player is trying to craft.
This will reflect changes made withsetRecipe(@org.jetbrains.annotations.NotNull org.bukkit.inventory.Recipe).- 返回:
- 配方
-
setRecipe
设置将要使用的配方.
游戏将尝试将此配方的材料移动到适当的槽位中.原文: 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.- 参数:
recipe- 要使用的配方
-
isShiftClick
public boolean isShiftClick()如果为 true,游戏将尝试将尽可能多的此配方的材料移动到适当的槽位中,否则只移动 1 份.原文: 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.
- 返回:
- 是否应移动尽可能多的副本
-
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- 是否应移动尽可能多的副本
-
getHandlers
- 指定者:
getHandlers在类中Event
-
getHandlerList
-