类 SmithingTrimRecipe
java.lang.Object
org.bukkit.inventory.SmithingRecipe
org.bukkit.inventory.SmithingTrimRecipe
- 所有已实现的接口:
ComplexRecipe,Recipe,Keyed
代表一个锻造装饰配方。
-
构造器概要
构造器构造器说明SmithingTrimRecipe(@NotNull NamespacedKey key, @Nullable RecipeChoice template, @Nullable RecipeChoice base, @Nullable RecipeChoice addition) 已过时。必须指定 trimPattern。SmithingTrimRecipe(@NotNull NamespacedKey key, @Nullable RecipeChoice template, @Nullable RecipeChoice base, @Nullable RecipeChoice addition, @NotNull TrimPattern trimPattern) -
方法概要
从类继承的方法 org.bukkit.inventory.SmithingRecipe
getAddition, getBase, getKey, getResult
-
构造器详细资料
-
SmithingTrimRecipe
@Deprecated(since="1.21.5") public SmithingTrimRecipe(@NotNull @NotNull NamespacedKey key, @Nullable @Nullable RecipeChoice template, @Nullable @Nullable RecipeChoice base, @Nullable @Nullable RecipeChoice addition) 已过时。必须指定 trimPattern。原文:Create a smithing recipe to produce the specified result ItemStack.
创建一个锻造配方以产生指定的结果物品。- 参数:
key- 配方的唯一键。template- 模板物品。base- 基础成分。addition- 附加成分。- 另请参阅:
-
SmithingTrimRecipe
public SmithingTrimRecipe(@NotNull @NotNull NamespacedKey key, @Nullable @Nullable RecipeChoice template, @Nullable @Nullable RecipeChoice base, @Nullable @Nullable RecipeChoice addition, @NotNull @NotNull TrimPattern trimPattern)
-
-
方法详细资料
-
getTemplate
获取模板配方物品。- 返回:
- 模板选择。
原文:Get the template recipe item.
-
getTrimPattern
-