Class TagRegistry

java.lang.Object
net.fabricmc.fabric.api.tag.TagRegistry

public final class TagRegistry extends Object
Helper methods for registering Tags.
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.tag.Tag<net.minecraft.block.Block>
    block​(net.minecraft.util.Identifier id)
     
    static <T> net.minecraft.tag.Tag.Identified<T>
    create​(net.minecraft.util.Identifier id, Supplier<net.minecraft.tag.TagGroup<T>> containerSupplier)
     
    static net.minecraft.tag.Tag<net.minecraft.entity.EntityType<?>>
    entityType​(net.minecraft.util.Identifier id)
     
    static net.minecraft.tag.Tag<net.minecraft.fluid.Fluid>
    fluid​(net.minecraft.util.Identifier id)
     
    static net.minecraft.tag.Tag<net.minecraft.item.Item>
    item​(net.minecraft.util.Identifier id)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • create

      public static <T> net.minecraft.tag.Tag.Identified<T> create(net.minecraft.util.Identifier id, Supplier<net.minecraft.tag.TagGroup<T>> containerSupplier)
    • block

      public static net.minecraft.tag.Tag<net.minecraft.block.Block> block(net.minecraft.util.Identifier id)
    • entityType

      public static net.minecraft.tag.Tag<net.minecraft.entity.EntityType<?>> entityType(net.minecraft.util.Identifier id)
    • fluid

      public static net.minecraft.tag.Tag<net.minecraft.fluid.Fluid> fluid(net.minecraft.util.Identifier id)
    • item

      public static net.minecraft.tag.Tag<net.minecraft.item.Item> item(net.minecraft.util.Identifier id)