类 SmithingRecipe
java.lang.Object
org.bukkit.inventory.SmithingRecipe
Represents a smithing recipe.
-
构造器概要
构造器说明SmithingRecipe
(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice base, @NotNull RecipeChoice addition) 已过时。 -
方法概要
-
构造器详细资料
-
SmithingRecipe
@Deprecated public SmithingRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull RecipeChoice base, @NotNull @NotNull RecipeChoice addition) 已过时。as of Minecraft 1.20, smithing recipes are now separated into two distinct recipe types,SmithingTransformRecipe
andSmithingTrimRecipe
. This class now acts as a base class to these two classes and will do nothing when added to the server.Create a smithing recipe to produce the specified result ItemStack.- 参数:
key
- The unique recipe keyresult
- The item you want the recipe to create.base
- The base ingredientaddition
- The addition ingredient
-
-
方法详细资料
SmithingTransformRecipe
andSmithingTrimRecipe
.