seperated initDefault into three stages. Allows easier cosumization of wood materials

This commit is contained in:
Frank Bauer 2021-07-30 10:18:31 +02:00
parent d33187d204
commit 2f1a4e9518

View file

@ -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<Block> tagBlockLog = getBlockTag(TAG_LOGS);
Tag.Named<Item> 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));