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