public class PotionHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
PotionHelper.MixPredicate<T extends IForgeRegistryEntry.Impl<T>> |
Modifier and Type | Field and Description |
---|---|
private static com.google.common.base.Predicate<ItemStack> |
IS_POTION_ITEM |
private static java.util.List<PotionHelper.MixPredicate<Item>> |
POTION_ITEM_CONVERSIONS |
private static java.util.List<Ingredient> |
POTION_ITEMS |
private static java.util.List<PotionHelper.MixPredicate<PotionType>> |
POTION_TYPE_CONVERSIONS |
Constructor and Description |
---|
PotionHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addContainer(ItemPotion p_193354_0_) |
static void |
addContainerRecipe(ItemPotion p_193355_0_,
Item p_193355_1_,
ItemPotion p_193355_2_) |
static void |
addMix(PotionType p_193356_0_,
Ingredient p_193356_1_,
PotionType p_193356_2_) |
static void |
addMix(PotionType p_193357_0_,
Item p_193357_1_,
PotionType p_193357_2_) |
static ItemStack |
doReaction(ItemStack reagent,
ItemStack potionIn) |
static boolean |
hasConversions(ItemStack input,
ItemStack reagent) |
protected static boolean |
hasItemConversions(ItemStack input,
ItemStack reagent) |
protected static boolean |
hasTypeConversions(ItemStack input,
ItemStack reagent) |
static void |
init() |
protected static boolean |
isItemConversionReagent(ItemStack stack) |
static boolean |
isReagent(ItemStack stack) |
protected static boolean |
isTypeConversionReagent(ItemStack stack) |
private static final java.util.List<PotionHelper.MixPredicate<PotionType>> POTION_TYPE_CONVERSIONS
private static final java.util.List<PotionHelper.MixPredicate<Item>> POTION_ITEM_CONVERSIONS
private static final java.util.List<Ingredient> POTION_ITEMS
private static final com.google.common.base.Predicate<ItemStack> IS_POTION_ITEM
public static boolean isReagent(ItemStack stack)
protected static boolean isItemConversionReagent(ItemStack stack)
protected static boolean isTypeConversionReagent(ItemStack stack)
public static void init()
public static void addContainerRecipe(ItemPotion p_193355_0_, Item p_193355_1_, ItemPotion p_193355_2_)
public static void addContainer(ItemPotion p_193354_0_)
public static void addMix(PotionType p_193357_0_, Item p_193357_1_, PotionType p_193357_2_)
public static void addMix(PotionType p_193356_0_, Ingredient p_193356_1_, PotionType p_193356_2_)