public class PotionHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PotionHelper.ItemPredicateInstance |
static class |
PotionHelper.MixPredicate<T> |
Constructor and Description |
---|
PotionHelper() |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
doReaction(ItemStack reagent,
ItemStack potionIn) |
static boolean |
hasConversions(ItemStack input,
ItemStack reagent) |
protected static boolean |
hasItemConversions(ItemStack p_185206_0_,
ItemStack p_185206_1_) |
protected static boolean |
hasTypeConversions(ItemStack p_185209_0_,
ItemStack p_185209_1_) |
static void |
init() |
protected static boolean |
isItemConversionReagent(ItemStack stack) |
static boolean |
isReagent(ItemStack stack) |
protected static boolean |
isTypeConversionReagent(ItemStack stack) |
static void |
registerPotionItem(PotionHelper.ItemPredicateInstance p_185202_0_)
Registers an itempredicate that identifies a potion item, for example Items.potionItem, or Items.lingering_potion
|
static void |
registerPotionItemConversion(ItemPotion p_185201_0_,
PotionHelper.ItemPredicateInstance p_185201_1_,
ItemPotion p_185201_2_)
Registers a conversion from one potion item to another, with the given reagent.
|
static void |
registerPotionTypeConversion(PotionType input,
<any> reagentPredicate,
PotionType output)
Registers a conversion from one PotionType to another PotionType, with the given reagent
|
public static boolean isReagent(ItemStack stack)
protected static boolean isItemConversionReagent(ItemStack stack)
protected static boolean isTypeConversionReagent(ItemStack stack)
protected static boolean hasItemConversions(ItemStack p_185206_0_, ItemStack p_185206_1_)
protected static boolean hasTypeConversions(ItemStack p_185209_0_, ItemStack p_185209_1_)
public static void init()
public static void registerPotionItemConversion(ItemPotion p_185201_0_, PotionHelper.ItemPredicateInstance p_185201_1_, ItemPotion p_185201_2_)
public static void registerPotionItem(PotionHelper.ItemPredicateInstance p_185202_0_)
public static void registerPotionTypeConversion(PotionType input, <any> reagentPredicate, PotionType output)