use of io.github.thebusybiscuit.exoticgarden.items.MagicalEssence in project ExoticGarden by TheBusyBiscuit.
the class ExoticGarden method registerMagicalPlant.
private void registerMagicalPlant(String name, ItemStack item, String texture, ItemStack[] recipe) {
String upperCase = name.toUpperCase(Locale.ROOT);
String enumStyle = upperCase.replace(' ', '_');
SlimefunItemStack essence = new SlimefunItemStack(enumStyle + "_ESSENCE", Material.BLAZE_POWDER, "&rMagical Essence", "", "&7" + name);
Berry berry = new Berry(essence, upperCase + "_ESSENCE", PlantType.ORE_PLANT, texture);
berries.add(berry);
new BonemealableItem(magicalItemGroup, new SlimefunItemStack(enumStyle + "_PLANT", Material.OAK_SAPLING, "&r" + name + " Plant"), RecipeType.ENHANCED_CRAFTING_TABLE, recipe).register(this);
MagicalEssence magicalEssence = new MagicalEssence(magicalItemGroup, essence);
magicalEssence.setRecipeOutput(item.clone());
magicalEssence.register(this);
}
Aggregations