[Feature] New Block Behaviour Interfaces

This commit is contained in:
Frank 2023-05-21 15:12:48 +02:00
parent 7d0df8c4dd
commit 3b2a2d4294
13 changed files with 118 additions and 42 deletions

View file

@ -1,7 +1,6 @@
package org.betterx.bclib.registry;
import org.betterx.bclib.BCLib;
import org.betterx.bclib.blocks.BaseLeavesBlock;
import org.betterx.bclib.blocks.BaseOreBlock;
import org.betterx.bclib.blocks.FeatureSaplingBlock;
import org.betterx.bclib.config.PathConfig;
@ -52,18 +51,7 @@ public class BlockRegistry extends BaseRegistry<Block> {
block = Registry.register(BuiltInRegistries.BLOCK, id, block);
getModBlocks(id.getNamespace()).add(block);
if (block instanceof BaseLeavesBlock) {
TagManager.BLOCKS.add(
block,
BlockTags.LEAVES,
CommonBlockTags.LEAVES,
MineableTags.HOE,
MineableTags.SHEARS
);
if (item != null) {
TagManager.ITEMS.add(item, CommonItemTags.LEAVES, ItemTags.LEAVES);
}
} else if (block instanceof BaseOreBlock) {
if (block instanceof BaseOreBlock) {
TagManager.BLOCKS.add(block, MineableTags.PICKAXE);
} else if (block instanceof FeatureSaplingBlock) {
TagManager.BLOCKS.add(block, CommonBlockTags.SAPLINGS, BlockTags.SAPLINGS);