Class TagUtil

java.lang.Object
info.u_team.u_team_core.util.TagUtil

public class TagUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>
     
    static net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>
    createBlockTag(net.minecraft.resources.ResourceLocation location)
     
    static net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>
     
    static net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>
    createEntityTypeTag(net.minecraft.resources.ResourceLocation location)
     
    static net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid>
     
    static net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid>
    createFluidTag(net.minecraft.resources.ResourceLocation location)
     
    static net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
    createItemTag(String modid, String name)
     
    static net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
    createItemTag(net.minecraft.resources.ResourceLocation location)
     
    static <T> net.minecraft.tags.TagKey<T>
    createTag(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key, net.minecraft.resources.ResourceLocation location)
     
    static net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
    fromBlockTag(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> block)
     
    static net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>
    fromItemTag(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> block)
     
    static net.minecraft.world.item.crafting.Ingredient
    getSerializableIngredientOfTag(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> 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

    • createBlockTag

      public static net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> createBlockTag(String modid, String name)
    • createBlockTag

      public static net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> createBlockTag(net.minecraft.resources.ResourceLocation location)
    • createItemTag

      public static net.minecraft.tags.TagKey<net.minecraft.world.item.Item> createItemTag(String modid, String name)
    • createItemTag

      public static net.minecraft.tags.TagKey<net.minecraft.world.item.Item> createItemTag(net.minecraft.resources.ResourceLocation location)
    • createFluidTag

      public static net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> createFluidTag(String modid, String name)
    • createFluidTag

      public static net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> createFluidTag(net.minecraft.resources.ResourceLocation location)
    • createEntityTypeTag

      public static net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> createEntityTypeTag(String modid, String name)
    • createEntityTypeTag

      public static net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> createEntityTypeTag(net.minecraft.resources.ResourceLocation location)
    • createTag

      public static <T> net.minecraft.tags.TagKey<T> createTag(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key, net.minecraft.resources.ResourceLocation location)
    • fromItemTag

      public static net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> fromItemTag(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> block)
    • fromBlockTag

      public static net.minecraft.tags.TagKey<net.minecraft.world.item.Item> fromBlockTag(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> block)
    • getSerializableIngredientOfTag

      public static net.minecraft.world.item.crafting.Ingredient getSerializableIngredientOfTag(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag)