类 FurnaceRecipe
熔炉冶炼配方.
-
构造器概要
构造器说明FurnaceRecipe
(@NotNull ItemStack result, @NotNull Material source) 已过时。FurnaceRecipe
(@NotNull ItemStack result, @NotNull MaterialData source) 已过时。FurnaceRecipe
(@NotNull ItemStack result, @NotNull MaterialData source, float experience) 已过时。FurnaceRecipe
(@NotNull ItemStack result, @NotNull Material source, int data) 已过时。FurnaceRecipe
(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe
(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe
(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, int data, float experience, int cookingTime) 已过时。 -
方法概要
修饰符和类型方法说明Sets the input of this cooking recipe.setInput
(@NotNull MaterialData input) 设置此冶炼配方的原料.已过时。Magic valuesetInputChoice
(@NotNull RecipeChoice input) Sets the input of this cooking recipe.从类继承的方法 org.bukkit.inventory.CookingRecipe
getCategory, getCookingTime, getExperience, getGroup, getInput, getInputChoice, getKey, getResult, setCategory, setCookingTime, setExperience, setGroup
-
构造器详细资料
-
FurnaceRecipe
@Deprecated public FurnaceRecipe(@NotNull @NotNull ItemStack result, @NotNull @NotNull Material source) 已过时。 -
FurnaceRecipe
@Deprecated public FurnaceRecipe(@NotNull @NotNull ItemStack result, @NotNull @NotNull MaterialData source) 已过时。 -
FurnaceRecipe
@Deprecated public FurnaceRecipe(@NotNull @NotNull ItemStack result, @NotNull @NotNull MaterialData source, float experience) 已过时。 -
FurnaceRecipe
@Deprecated public FurnaceRecipe(@NotNull @NotNull ItemStack result, @NotNull @NotNull Material source, int data) 已过时。 -
FurnaceRecipe
public FurnaceRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull Material source, float experience, int cookingTime) Create a furnace recipe to craft the specified ItemStack.- 参数:
key
- The unique recipe keyresult
- The item you want the recipe to create.source
- The input material.experience
- The experience given by this recipecookingTime
- The cooking time (in ticks)
-
FurnaceRecipe
@Deprecated public FurnaceRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull Material source, int data, float experience, int cookingTime) 已过时。 -
FurnaceRecipe
public FurnaceRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull RecipeChoice input, float experience, int cookingTime) Create a furnace recipe to craft the specified ItemStack.- 参数:
key
- The unique recipe keyresult
- The item you want the recipe to create.input
- The input choices.experience
- The experience given by this recipecookingTime
- The cooking time (in ticks)
-
-
方法详细资料
-
setInput
设置此冶炼配方的原料.原文:Sets the input of this furnace recipe.
- 参数:
input
- 冶炼原料.- 返回:
- 返回新的冶炼配方.
-
setInput
从类复制的说明:CookingRecipe
Sets the input of this cooking recipe.- 覆盖:
setInput
在类中CookingRecipe<FurnaceRecipe>
- 参数:
input
- The input material.- 返回:
- The changed recipe, so you can chain calls.
-
setInput
已过时。Magic value设置此冶炼配方的原料.原文:Sets the input of this furnace recipe.
- 参数:
input
- 冶炼原料.data
- 数据值. (注意: 该值目前被CraftBukkit服务器忽略,也就是说没有作用)- 返回:
- 返回新的冶炼配方.
-
setInputChoice
从类复制的说明:CookingRecipe
Sets the input of this cooking recipe.- 覆盖:
setInputChoice
在类中CookingRecipe<FurnaceRecipe>
- 参数:
input
- The input choice.- 返回:
- The changed recipe, so you can chain calls.
-