Package net.minecraft.potion
Class PotionHelperCommonCapabilities
java.lang.Object
net.minecraft.potion.PotionHelperCommonCapabilities
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
addRecipeIfNew
(IPrototypedIngredient<net.minecraft.world.item.ItemStack, Integer> ingredient, IPrototypedIngredient<net.minecraft.world.item.ItemStack, Integer> item, net.minecraft.world.item.ItemStack output, List<net.minecraft.world.item.ItemStack> newItems) protected static net.minecraft.core.Holder
<net.minecraft.world.item.alchemy.Potion> getPotion
(net.minecraft.world.item.ItemStack itemStack) static List
<IRecipeDefinition> protected static boolean
isPotionOutputValid
(net.minecraft.world.item.ItemStack input, net.minecraft.world.item.ItemStack output)
-
Constructor Details
-
PotionHelperCommonCapabilities
public PotionHelperCommonCapabilities()
-
-
Method Details
-
getVanillaRecipes
-
isPotionOutputValid
protected static boolean isPotionOutputValid(net.minecraft.world.item.ItemStack input, net.minecraft.world.item.ItemStack output) -
getPotion
protected static net.minecraft.core.Holder<net.minecraft.world.item.alchemy.Potion> getPotion(net.minecraft.world.item.ItemStack itemStack) -
addRecipeIfNew
protected static void addRecipeIfNew(IPrototypedIngredient<net.minecraft.world.item.ItemStack, Integer> ingredient, IPrototypedIngredient<net.minecraft.world.item.ItemStack, Integer> item, net.minecraft.world.item.ItemStack output, List<net.minecraft.world.item.ItemStack> newItems)
-