[Feature] Add Tag to Fisherman Workstation POI (quiqueck/BetterNether#39)
This commit is contained in:
parent
5ac1eed54e
commit
1628ac9a86
2 changed files with 20 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
package org.betterx.bclib.api.v2.poi;
|
||||
|
||||
import org.betterx.worlds.together.tag.v3.CommonPoiTags;
|
||||
|
||||
import net.minecraft.core.Registry;
|
||||
import net.minecraft.resources.ResourceKey;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
|
@ -10,6 +12,7 @@ import net.minecraft.world.level.block.Block;
|
|||
import net.minecraft.world.level.block.state.BlockState;
|
||||
|
||||
import java.util.Set;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
public class PoiManager {
|
||||
public static BCLPoiType register(
|
||||
|
@ -32,4 +35,9 @@ public class PoiManager {
|
|||
ext.bcl_setTag(tag);
|
||||
}
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
public static void registerAll() {
|
||||
PoiManager.setTag(PoiTypes.FISHERMAN, CommonPoiTags.FISHERMAN_WORKSTATION);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
package org.betterx.worlds.together.tag.v3;
|
||||
|
||||
import net.minecraft.tags.TagKey;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
|
||||
public class CommonPoiTags {
|
||||
public static final TagKey<Block> FISHERMAN_WORKSTATION = TagManager.BLOCKS.makeCommonTag("workstation/fisherman");
|
||||
|
||||
static {
|
||||
TagManager.BLOCKS.addOtherTags(FISHERMAN_WORKSTATION, CommonBlockTags.BARREL, CommonBlockTags.WOODEN_BARREL);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue