Package net.fabricmc.fabric.api.tag
Class TagRegistry
java.lang.Object
net.fabricmc.fabric.api.tag.TagRegistry
Deprecated.
Helper methods for registering Tags.
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.tag.Tag<net.minecraft.block.Block>
block(net.minecraft.util.Identifier id)
Deprecated.useTagFactory.BLOCK
static <T> net.minecraft.tag.Tag.Identified<T>
create(net.minecraft.util.Identifier id, Supplier<net.minecraft.tag.TagGroup<T>> containerSupplier)
Deprecated.static net.minecraft.tag.Tag<net.minecraft.entity.EntityType<?>>
entityType(net.minecraft.util.Identifier id)
Deprecated.static net.minecraft.tag.Tag<net.minecraft.fluid.Fluid>
fluid(net.minecraft.util.Identifier id)
Deprecated.useTagFactory.FLUID
static net.minecraft.tag.Tag<net.minecraft.item.Item>
item(net.minecraft.util.Identifier id)
Deprecated.useTagFactory.ITEM
-
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)Deprecated. -
block
@Deprecated public static net.minecraft.tag.Tag<net.minecraft.block.Block> block(net.minecraft.util.Identifier id)Deprecated.useTagFactory.BLOCK
-
entityType
@Deprecated public static net.minecraft.tag.Tag<net.minecraft.entity.EntityType<?>> entityType(net.minecraft.util.Identifier id)Deprecated. -
fluid
@Deprecated public static net.minecraft.tag.Tag<net.minecraft.fluid.Fluid> fluid(net.minecraft.util.Identifier id)Deprecated.useTagFactory.FLUID
-
item
@Deprecated public static net.minecraft.tag.Tag<net.minecraft.item.Item> item(net.minecraft.util.Identifier id)Deprecated.useTagFactory.ITEM
-
TagFactory
instead.