List of usage examples for net.minecraftforge.common.brewing BrewingRecipeRegistry addRecipe
public static boolean addRecipe(Ingredient input, Ingredient ingredient, ItemStack output)
From source file:net.jcodegamers.jcgml.JCGML.java
License:Open Source License
/** * Add a brewing recipe//from ww w . j ava2 s . co m */ public static void addRecipe(ItemStack input, ItemStack ingredient, ItemStack output) { BrewingRecipeRegistry.addRecipe(input, ingredient, output); }
From source file:net.jcodegamers.jcgml.JCGML.java
License:Open Source License
/** * Add a brewing recipe//from w ww. j a va 2 s . co m */ public static void addRecipe(ItemStack input, String ingredient, ItemStack output) { BrewingRecipeRegistry.addRecipe(input, ingredient, output); }
From source file:net.jcodegamers.jcgml.JCGML.java
License:Open Source License
/** * Add a brewing recipe//from w w w .j a v a 2s. c o m */ public static void addRecipe(Item input, String ingredient, ItemStack output) { BrewingRecipeRegistry.addRecipe(new ItemStack(input), ingredient, output); }
From source file:net.jcodegamers.jcgml.JCGML.java
License:Open Source License
/** * Add a brewing recipe/*from w w w.j av a 2 s.c o m*/ */ public static void addRecipe(Item input, ItemStack ingredient, ItemStack output) { BrewingRecipeRegistry.addRecipe(new ItemStack(input), ingredient, output); }
From source file:net.jcodegamers.jcgml.JCGML.java
License:Open Source License
/** * Add a brewing recipe//from www . ja va2 s.co m */ public static void addRecipe(Block input, String ingredient, ItemStack output) { BrewingRecipeRegistry.addRecipe(new ItemStack(input), ingredient, output); }
From source file:net.jcodegamers.jcgml.JCGML.java
License:Open Source License
/** * Add a brewing recipe//from w ww . j av a 2s . com */ public static void addRecipe(Block input, ItemStack ingredient, ItemStack output) { BrewingRecipeRegistry.addRecipe(new ItemStack(input), ingredient, output); }
From source file:nightkosh.gravestone_extended.core.GSPotion.java
License:LGPL
@SubscribeEvent public static void registerPotionTypes(final RegistryEvent.Register<PotionType> event) { event.getRegistry().registerAll(PURIFICATION_TYPE, RUST_TYPE, BONE_SKIN_TYPE, RECALL_TYPE, BURNING_TYPE, BLEEDING_TYPE, INFERNO_TYPE); event.getRegistry().registerAll(HUNGER_TYPE, BLINDNESS_TYPE, NAUSEA_TYPE, RESISTANCE_TYPE, LEVITATION_TYPE); PotionHelper.addMix(PotionTypes.AWKWARD, GSItem.TOXIC_SLIME, RUST_TYPE); PotionHelper.addMix(PotionTypes.AWKWARD, Ingredient.fromStacks(new ItemStack(GSItem.FISH, 1, ItemFish.EnumFishType.GOLDEN_KOI.ordinal())), PURIFICATION_TYPE);/*from w w w .ja va 2 s . c o m*/ PotionHelper.addMix(PotionTypes.AWKWARD, Ingredient.fromStacks(new ItemStack(GSItem.FISH, 1, ItemFish.EnumFishType.BONE_FISH.ordinal())), BONE_SKIN_TYPE); PotionHelper.addMix(PotionTypes.AWKWARD, Ingredient .fromStacks(new ItemStack(GSItem.FISH, 1, ItemFish.EnumFishType.MAGMA_JELLYFISH.ordinal())), BURNING_TYPE); PotionHelper.addMix(PotionTypes.AWKWARD, Ingredient.fromStacks(new ItemStack(GSItem.FISH, 1, ItemFish.EnumFishType.PIRANHA.ordinal())), BLEEDING_TYPE); PotionHelper.addMix(BURNING_TYPE, Ingredient.fromStacks(new ItemStack(GSItem.FISH, 1, ItemFish.EnumFishType.FLAREFIN_KOI.ordinal())), INFERNO_TYPE); BrewingRecipeRegistry.addRecipe( PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM), PotionTypes.AWKWARD), new ItemStack(GSItem.FISH, 1, ItemFish.EnumFishType.SPECULAR_FISH.ordinal()), PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM), RECALL_TYPE)); // vanilla potions PotionHelper.addMix(PotionTypes.AWKWARD, Ingredient.fromStacks(new ItemStack(Items.FISH, 1, 2)), PotionType.getPotionTypeForName("luck")); PotionHelper.addMix(PotionTypes.AWKWARD, Ingredient.fromStacks(new ItemStack(Items.ROTTEN_FLESH, 1)), HUNGER_TYPE); PotionHelper.addMix(PotionTypes.AWKWARD, Ingredient .fromStacks(new ItemStack(GSItem.FISH, 1, ItemFish.EnumFishType.BLUE_JELLYFISH.ordinal())), NAUSEA_TYPE); PotionHelper.addMix(PotionTypes.AWKWARD, Ingredient.fromStacks(new ItemStack(GSItem.FISH, 1, ItemFish.EnumFishType.SPOOKYFIN.ordinal())), BLINDNESS_TYPE); PotionHelper.addMix(PotionTypes.AWKWARD, Ingredient.fromStacks(new ItemStack(GSItem.FISH, 1, ItemFish.EnumFishType.CAVEFISH.ordinal())), RESISTANCE_TYPE); PotionHelper.addMix(PotionTypes.AWKWARD, Ingredient.fromStacks(new ItemStack(GSItem.FISH, 1, ItemFish.EnumFishType.CHORUS_KOI.ordinal())), LEVITATION_TYPE); }