New Interfaces to handle MineableTags for Blocks
This commit is contained in:
parent
7e981ca1d9
commit
5f17127ba5
13 changed files with 65 additions and 27 deletions
|
@ -14,10 +14,12 @@ import ru.bclib.api.tag.TagAPI.TagLocation;
|
|||
import ru.bclib.client.render.BCLRenderLayer;
|
||||
import ru.bclib.interfaces.RenderLayerProvider;
|
||||
import ru.bclib.interfaces.TagProvider;
|
||||
import ru.bclib.interfaces.tools.AddMineableHoe;
|
||||
import ru.bclib.interfaces.tools.AddMineableShears;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class SimpleLeavesBlock extends BaseBlockNotFull implements RenderLayerProvider, TagProvider {
|
||||
public class SimpleLeavesBlock extends BaseBlockNotFull implements RenderLayerProvider, TagProvider, AddMineableShears, AddMineableHoe {
|
||||
public SimpleLeavesBlock(MaterialColor color) {
|
||||
this(
|
||||
FabricBlockSettings
|
||||
|
@ -58,8 +60,6 @@ public class SimpleLeavesBlock extends BaseBlockNotFull implements RenderLayerPr
|
|||
|
||||
@Override
|
||||
public void addTags(List<TagLocation<Block>> blockTags, List<TagLocation<Item>> itemTags) {
|
||||
blockTags.add(NamedMineableTags.SHEARS);
|
||||
blockTags.add(NamedMineableTags.HOE);
|
||||
blockTags.add(NamedBlockTags.LEAVES);
|
||||
itemTags.add(NamedItemTags.LEAVES);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue