More Tag Related Changes
This commit is contained in:
parent
ecc792ed9a
commit
0e1627958a
4 changed files with 9 additions and 1 deletions
|
@ -11,7 +11,7 @@ loader_version= 0.13.3
|
||||||
fabric_version = 0.47.10+1.18.2
|
fabric_version = 0.47.10+1.18.2
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.4.0
|
mod_version = 1.4.1
|
||||||
maven_group = ru.bclib
|
maven_group = ru.bclib
|
||||||
archives_base_name = bclib
|
archives_base_name = bclib
|
||||||
|
|
||||||
|
|
|
@ -132,6 +132,9 @@ public class PostInitAPI {
|
||||||
if (block instanceof AddMineableSword) {
|
if (block instanceof AddMineableSword) {
|
||||||
TagAPI.addBlockTags(block, NamedMineableTags.SWORD);
|
TagAPI.addBlockTags(block, NamedMineableTags.SWORD);
|
||||||
}
|
}
|
||||||
|
if (block instanceof AddMineableHammer) {
|
||||||
|
TagAPI.addBlockTags(block, NamedMineableTags.HAMMER);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (block instanceof TagProvider) {
|
if (block instanceof TagProvider) {
|
||||||
TagProvider.class.cast(block).addTags(blockTags, itemTags);
|
TagProvider.class.cast(block).addTags(blockTags, itemTags);
|
||||||
|
|
|
@ -10,4 +10,5 @@ public class NamedMineableTags {
|
||||||
public static final TagLocation<Block> SHEARS = new TagLocation<>("fabric", "mineable/shears");
|
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> SHOVEL = new TagLocation<>("mineable/shovel");
|
||||||
public static final TagLocation<Block> SWORD = new TagLocation<>("fabric", "mineable/sword");
|
public static final TagLocation<Block> SWORD = new TagLocation<>("fabric", "mineable/sword");
|
||||||
|
public static final TagLocation<Block> HAMMER = new TagLocation<>("c", "mineable/hammer");
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
package ru.bclib.interfaces.tools;
|
||||||
|
|
||||||
|
public interface AddMineableHammer {
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue