Package com.minecolonies.api.util
Class TagUtils
java.lang.Object
com.minecolonies.api.util.TagUtils
Class for specific minecraft tag utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>getBlock(net.minecraft.resources.ResourceLocation resourceLocation) Get a tag for items.static net.minecraft.tags.TagKey<net.minecraft.world.item.Item>getItem(net.minecraft.resources.ResourceLocation resourceLocation) Get a tag for items.
-
Method Details
-
getItem
public static net.minecraft.tags.TagKey<net.minecraft.world.item.Item> getItem(net.minecraft.resources.ResourceLocation resourceLocation) Get a tag for items.- Parameters:
resourceLocation- the unique id.- Returns:
- the tag or an empty placeholder if not existant.
-
getBlock
public static net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> getBlock(net.minecraft.resources.ResourceLocation resourceLocation) Get a tag for items.- Parameters:
resourceLocation- the unique id.- Returns:
- the tag or an empty placeholder if not existant.
-