类 VanillaBrewingRecipe
java.lang.Object
net.minecraftforge.common.brewing.VanillaBrewingRecipe
- 所有已实现的接口:
IBrewingRecipe
Used in BrewingRecipeRegistry to maintain the vanilla behaviour.
Most of the code was simply adapted from net.minecraft.tileentity.TileEntityBrewingStand
-
字段概要
字段 -
构造器概要
构造器构造器说明VanillaBrewingRecipe
(PotionBrewing vanilla, BiFunction<ItemStack, ItemStack, ItemStack> vanillaMix) -
方法概要
修饰符和类型方法说明Code copied from TileEntityBrewingStand.brewPotions() It brews the potion by doing the bit-shifting magic and then checking if the new PotionEffect list is different to the old one, or if the new potion is a splash potion when the old one wasn't.boolean
isIngredient
(ItemStack stack) Code adapted from TileEntityBrewingStand.isItemValidForSlot(int index, ItemStack stack)boolean
Code adapted from TileEntityBrewingStand.isItemValidForSlot(int index, ItemStack stack)
-
字段详细资料
-
vanilla
-
vanillaMix
-
-
构造器详细资料
-
VanillaBrewingRecipe
public VanillaBrewingRecipe(PotionBrewing vanilla, BiFunction<ItemStack, ItemStack, ItemStack> vanillaMix)
-
-
方法详细资料
-
isInput
Code adapted from TileEntityBrewingStand.isItemValidForSlot(int index, ItemStack stack)- 指定者:
isInput
在接口中IBrewingRecipe
-
isIngredient
Code adapted from TileEntityBrewingStand.isItemValidForSlot(int index, ItemStack stack)- 指定者:
isIngredient
在接口中IBrewingRecipe
-
getOutput
Code copied from TileEntityBrewingStand.brewPotions() It brews the potion by doing the bit-shifting magic and then checking if the new PotionEffect list is different to the old one, or if the new potion is a splash potion when the old one wasn't.- 指定者:
getOutput
在接口中IBrewingRecipe
-