Class TagUtil

java.lang.Object
com.hrznstudio.titanium.util.TagUtil

public class TagUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.ItemStack
    getItemWithPreference(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> boolean
    hasTag(net.minecraftforge.registries.IForgeRegistry<T> registry, T type, net.minecraft.tags.TagKey<T> tag)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)