public class BrewingRecipeRegistry extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
BrewingRecipeRegistry.Recipe<T> |
Modifier and Type | Field and Description |
---|---|
private static List<BrewingRecipeRegistry.Recipe<Item>> |
ITEM_RECIPES |
private static List<BrewingRecipeRegistry.Recipe<Potion>> |
POTION_RECIPES |
private static Predicate<ItemStack> |
POTION_TYPE_PREDICATE |
private static List<Ingredient> |
POTION_TYPES |
Constructor and Description |
---|
BrewingRecipeRegistry() |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
craft(ItemStack input,
ItemStack ingredient) |
protected static boolean |
hasItemRecipe(ItemStack input,
ItemStack ingredient) |
protected static boolean |
hasPotionRecipe(ItemStack input,
ItemStack ingredient) |
static boolean |
hasRecipe(ItemStack input,
ItemStack ingredient) |
static boolean |
isBrewable(Potion potion) |
protected static boolean |
isItemRecipeIngredient(ItemStack stack) |
protected static boolean |
isPotionRecipeIngredient(ItemStack stack) |
static boolean |
isValidIngredient(ItemStack stack) |
static void |
registerDefaults() |
private static void |
registerItemRecipe(Item input,
Item ingredient,
Item output) |
private static void |
registerPotionRecipe(Potion input,
Item item,
Potion output) |
private static void |
registerPotionType(Item item) |
private static final List<BrewingRecipeRegistry.Recipe<Potion>> POTION_RECIPES
private static final List<BrewingRecipeRegistry.Recipe<Item>> ITEM_RECIPES
private static final List<Ingredient> POTION_TYPES
public static boolean isValidIngredient(ItemStack stack)
protected static boolean isItemRecipeIngredient(ItemStack stack)
protected static boolean isPotionRecipeIngredient(ItemStack stack)
public static boolean isBrewable(Potion potion)
public static void registerDefaults()
private static void registerPotionType(Item item)