类 PotionBrewing.Builder
java.lang.Object
net.minecraft.world.item.alchemy.PotionBrewing.Builder
- 封闭类:
PotionBrewing
-
字段概要
字段修饰符和类型字段说明private final List
<PotionBrewing.Mix<Item>> private final List
<Ingredient> private final FeatureFlagSet
private final List
<PotionBrewing.Mix<Potion>> private final List
<IBrewingRecipe> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
addContainer
(Item p_340911_) void
addContainerRecipe
(Item p_341264_, Item p_340992_, Item p_341160_) void
void
addRecipe
(Ingredient input, Ingredient ingredient, ItemStack output) Adds a new simple brewing recipe.void
addRecipe
(IBrewingRecipe recipe) Adds a new brewing recipe with custom logic.void
addStartMix
(Item p_341103_, Holder<Potion> p_341346_) build()
private static void
expectPotion
(Item p_341194_)
-
字段详细资料
-
containers
-
potionMixes
-
containerMixes
-
recipes
-
enabledFeatures
-
-
构造器详细资料
-
Builder
-
-
方法详细资料
-
expectPotion
-
addContainerRecipe
-
addContainer
-
addMix
-
addStartMix
-
addRecipe
Adds a new simple brewing recipe.- 参数:
input
- the ingredient that goes in the same slot as water bottles wouldingredient
- the ingredient that goes in the same slot as nether wart wouldoutput
- the item stack that will replace the input once brewing is done
-
addRecipe
Adds a new brewing recipe with custom logic. -
build
-