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.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.ItemStack
    getItemWithPreference​(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> boolean
    hasTag​(T type, net.minecraft.tags.SetTag<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​(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

      public static <T> Collection<T> getAllEntries​(net.minecraft.tags.SetTag<T>... tags)
    • getAllEntries

      public static <T> Collection<T> getAllEntries​(net.minecraft.tags.SetTag<T> tag)
    • 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)