package org.betterx.betterend.complexmaterials; import org.betterx.bclib.complexmaterials.WoodenComplexMaterial; import org.betterx.bclib.complexmaterials.entry.RecipeEntry; import org.betterx.bclib.complexmaterials.entry.SlotMap; import org.betterx.bclib.complexmaterials.set.wood.HangingSign; import org.betterx.bclib.complexmaterials.set.wood.WoodSlots; import org.betterx.bclib.recipes.BCLRecipeBuilder; import org.betterx.betterend.registry.EndBlocks; import net.minecraft.data.recipes.RecipeCategory; import net.minecraft.world.item.Items; import net.minecraft.world.level.material.MapColor; import java.util.function.Consumer; public class JellyLucerniaWoodMaterial extends EndWoodenComplexMaterial { public JellyLucerniaWoodMaterial() { super("lucernia_jellyshroom", MapColor.COLOR_PURPLE, MapColor.COLOR_ORANGE); } @Override protected SlotMap createMaterialSlots() { return SlotMap.of(new HangingSign() { @Override public void addRecipeEntry(WoodenComplexMaterial parentMaterial, Consumer adder) { adder.accept(new RecipeEntry(suffix, (mat, id) -> BCLRecipeBuilder .crafting(id, parentMaterial.getBlock(suffix)) .setOutputCount(3) .setShape("I I", "o#o", "o#o") .addMaterial('#', EndBlocks.LUCERNIA.getBlock(WoodSlots.STRIPPED_LOG)) .addMaterial('o', EndBlocks.JELLYSHROOM.getBlock(WoodSlots.LOG)) .addMaterial('I', Items.CHAIN) .setGroup("sign") .setCategory(RecipeCategory.DECORATIONS) .build() )); } }); } }