Package com.hrznstudio.titanium.util
Class TagUtil
java.lang.Object
com.hrznstudio.titanium.util.TagUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.tags.TagCollection<net.minecraft.world.level.block.Block>getAllBlockTags(net.minecraft.world.level.Level world)static <T> Collection<T>getAllEntries(net.minecraft.tags.SetTag<T> tag)static <T> Collection<T>getAllEntries(net.minecraft.tags.SetTag<T>... tags)static net.minecraft.tags.TagCollection<net.minecraft.world.level.material.Fluid>getAllFluidTags(net.minecraft.world.level.Level world)static net.minecraft.tags.TagCollection<net.minecraft.world.item.Item>getAllItemTags(net.minecraft.world.level.Level world)static net.minecraft.tags.Tag<net.minecraft.world.level.block.Block>getBlockTag(net.minecraft.resources.ResourceLocation resourceLocation)static net.minecraft.tags.Tag<net.minecraft.world.entity.EntityType<?>>getEntityTypeTag(net.minecraft.resources.ResourceLocation resourceLocation)static net.minecraft.tags.Tag<net.minecraft.world.level.material.Fluid>getFluidTag(net.minecraft.resources.ResourceLocation resourceLocation)static net.minecraft.tags.Tag<net.minecraft.world.item.Item>getItemTag(net.minecraft.resources.ResourceLocation resourceLocation)static net.minecraft.world.item.ItemStackgetItemWithPreference(net.minecraft.tags.Tag<net.minecraft.world.item.Item> tag)static <T> net.minecraft.tags.Tag<T>getOrCreateTag(net.minecraft.tags.TagCollection<T> collection, net.minecraft.resources.ResourceLocation resourceLocation)static <T> booleanhasTag(T type, net.minecraft.tags.SetTag<T> tag)
-
Constructor Details
-
TagUtil
public TagUtil()
-
-
Method Details
-
hasTag
public static <T> boolean hasTag(T type, net.minecraft.tags.SetTag<T> tag) -
getAllBlockTags
public static net.minecraft.tags.TagCollection<net.minecraft.world.level.block.Block> getAllBlockTags(net.minecraft.world.level.Level world) -
getAllItemTags
public static net.minecraft.tags.TagCollection<net.minecraft.world.item.Item> getAllItemTags(net.minecraft.world.level.Level world) -
getAllFluidTags
public static net.minecraft.tags.TagCollection<net.minecraft.world.level.material.Fluid> getAllFluidTags(net.minecraft.world.level.Level world) -
getAllEntries
-
getAllEntries
-
getOrCreateTag
public static <T> net.minecraft.tags.Tag<T> getOrCreateTag(net.minecraft.tags.TagCollection<T> collection, net.minecraft.resources.ResourceLocation resourceLocation) -
getItemTag
public static net.minecraft.tags.Tag<net.minecraft.world.item.Item> getItemTag(net.minecraft.resources.ResourceLocation resourceLocation) -
getBlockTag
public static net.minecraft.tags.Tag<net.minecraft.world.level.block.Block> getBlockTag(net.minecraft.resources.ResourceLocation resourceLocation) -
getEntityTypeTag
public static net.minecraft.tags.Tag<net.minecraft.world.entity.EntityType<?>> getEntityTypeTag(net.minecraft.resources.ResourceLocation resourceLocation) -
getFluidTag
public static net.minecraft.tags.Tag<net.minecraft.world.level.material.Fluid> getFluidTag(net.minecraft.resources.ResourceLocation resourceLocation) -
getItemWithPreference
public static net.minecraft.world.item.ItemStack getItemWithPreference(net.minecraft.tags.Tag<net.minecraft.world.item.Item> tag)
-