Package net.fabricmc.fabric.api.tag
Class TagRegistry
java.lang.Object
net.fabricmc.fabric.api.tag.TagRegistry
Helper methods for registering Tags.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
-
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)
-