Search in sources :

Example 1 with MagicalEssence

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);
}
Also used : BonemealableItem(io.github.thebusybiscuit.exoticgarden.items.BonemealableItem) MagicalEssence(io.github.thebusybiscuit.exoticgarden.items.MagicalEssence) SlimefunItemStack(io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack)

Aggregations

BonemealableItem (io.github.thebusybiscuit.exoticgarden.items.BonemealableItem)1 MagicalEssence (io.github.thebusybiscuit.exoticgarden.items.MagicalEssence)1 SlimefunItemStack (io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack)1