类 FurnaceRecipe
熔炉冶炼配方.
-
构造器概要
构造器构造器说明FurnaceRecipe(ItemStack result, Material source) 已过时。FurnaceRecipe(ItemStack result, MaterialData source) 已过时。FurnaceRecipe(ItemStack result, MaterialData source, float experience) 已过时。FurnaceRecipe(ItemStack result, Material source, int data) 已过时。FurnaceRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, float experience, int cookingTime) Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(NamespacedKey key, ItemStack result, Material source, float experience, int cookingTime) Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(NamespacedKey key, ItemStack result, Material source, int data, float experience, int cookingTime) 已过时。 -
方法概要
修饰符和类型方法说明Sets the input of this cooking recipe.setInput(MaterialData input) 设置此冶炼配方的原料.已过时。Magic valuesetInputChoice(RecipeChoice input) Sets the input of this cooking recipe.从类继承的方法 org.bukkit.inventory.CookingRecipe
getCookingTime, getExperience, getGroup, getInput, getInputChoice, getKey, getResult, setCookingTime, setExperience, setGroup
-
构造器详细资料
-
FurnaceRecipe
已过时。 -
FurnaceRecipe
已过时。 -
FurnaceRecipe
已过时。 -
FurnaceRecipe
已过时。 -
FurnaceRecipe
public FurnaceRecipe(NamespacedKey key, ItemStack result, 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(NamespacedKey key, ItemStack result, Material source, int data, float experience, int cookingTime) 已过时。 -
FurnaceRecipe
public FurnaceRecipe(NamespacedKey key, ItemStack result, 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
从类复制的说明:CookingRecipeSets 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
从类复制的说明:CookingRecipeSets the input of this cooking recipe.- 覆盖:
setInputChoice在类中CookingRecipe<FurnaceRecipe>- 参数:
input- The input choice.- 返回:
- The changed recipe, so you can chain calls.
-