From 2f1a4e9518b6032422353768b298549ee1071f20 Mon Sep 17 00:00:00 2001 From: Frank Bauer Date: Fri, 30 Jul 2021 10:18:31 +0200 Subject: [PATCH] seperated `initDefault` into three stages. Allows easier cosumization of wood materials --- .../ru/bclib/complexmaterials/WoodenComplexMaterial.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ru/bclib/complexmaterials/WoodenComplexMaterial.java b/src/main/java/ru/bclib/complexmaterials/WoodenComplexMaterial.java index cf7f2f9a..53b7ba7d 100644 --- a/src/main/java/ru/bclib/complexmaterials/WoodenComplexMaterial.java +++ b/src/main/java/ru/bclib/complexmaterials/WoodenComplexMaterial.java @@ -96,7 +96,7 @@ public class WoodenComplexMaterial extends ComplexMaterial { initDecorations(blockSettings, itemSettings); } - protected void initBase(FabricBlockSettings blockSettings, FabricItemSettings itemSettings) { + final protected void initBase(FabricBlockSettings blockSettings, FabricItemSettings itemSettings) { Tag.Named tagBlockLog = getBlockTag(TAG_LOGS); Tag.Named tagItemLog = getItemTag(TAG_LOGS); @@ -169,7 +169,7 @@ public class WoodenComplexMaterial extends ComplexMaterial { } - protected void initStorage(FabricBlockSettings blockSettings, FabricItemSettings itemSettings){ + final protected void initStorage(FabricBlockSettings blockSettings, FabricItemSettings itemSettings){ addBlockEntry(new BlockEntry(BLOCK_CHEST, (complexMaterial, settings) -> { return new BaseChestBlock(getBlock(BLOCK_PLANKS)); }).setBlockTags(TagAPI.BLOCK_CHEST).setItemTags(TagAPI.ITEM_CHEST)); @@ -178,7 +178,7 @@ public class WoodenComplexMaterial extends ComplexMaterial { })); } - protected void initDecorations(FabricBlockSettings blockSettings, FabricItemSettings itemSettings){ + final protected void initDecorations(FabricBlockSettings blockSettings, FabricItemSettings itemSettings){ addBlockEntry(new BlockEntry(BLOCK_CRAFTING_TABLE, (complexMaterial, settings) -> { return new BaseCraftingTableBlock(getBlock(BLOCK_PLANKS)); }).setBlockTags(TagAPI.BLOCK_WORKBENCHES).setItemTags(TagAPI.ITEM_WORKBENCHES));