More Tag Related Changes

This commit is contained in:
Frank 2022-04-03 22:51:05 +02:00
parent ecc792ed9a
commit 0e1627958a
4 changed files with 9 additions and 1 deletions

View file

@ -11,7 +11,7 @@ loader_version= 0.13.3
fabric_version = 0.47.10+1.18.2
# Mod Properties
mod_version = 1.4.0
mod_version = 1.4.1
maven_group = ru.bclib
archives_base_name = bclib

View file

@ -132,6 +132,9 @@ public class PostInitAPI {
if (block instanceof AddMineableSword) {
TagAPI.addBlockTags(block, NamedMineableTags.SWORD);
}
if (block instanceof AddMineableHammer) {
TagAPI.addBlockTags(block, NamedMineableTags.HAMMER);
}
}
if (block instanceof TagProvider) {
TagProvider.class.cast(block).addTags(blockTags, itemTags);

View file

@ -10,4 +10,5 @@ public class NamedMineableTags {
public static final TagLocation<Block> SHEARS = new TagLocation<>("fabric", "mineable/shears");
public static final TagLocation<Block> SHOVEL = new TagLocation<>("mineable/shovel");
public static final TagLocation<Block> SWORD = new TagLocation<>("fabric", "mineable/sword");
public static final TagLocation<Block> HAMMER = new TagLocation<>("c", "mineable/hammer");
}

View file

@ -0,0 +1,4 @@
package ru.bclib.interfaces.tools;
public interface AddMineableHammer {
}