Package net.fabricmc.fabric.api.tag
Interface TagFactory<T>
public interface TagFactory<T>
A factory for accessing datapack tags.
-
Field Summary
Modifier and TypeFieldDescriptionstatic TagFactory<net.minecraft.world.biome.Biome>
static TagFactory<net.minecraft.block.Block>
static TagFactory<net.minecraft.entity.EntityType<?>>
static TagFactory<net.minecraft.fluid.Fluid>
static TagFactory<net.minecraft.world.event.GameEvent>
static TagFactory<net.minecraft.item.Item>
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.tag.Tag.Identified<T>
create(net.minecraft.util.Identifier id)
static <T> TagFactory<T>
static <T> TagFactory<T>
of(net.minecraft.util.registry.RegistryKey<? extends net.minecraft.util.registry.Registry<T>> registryKey, String dataType)
Create a new tag factory for specified registry.
-
Field Details
-
ITEM
-
BLOCK
-
FLUID
-
GAME_EVENT
-
ENTITY_TYPE
-
BIOME
-
-
Method Details
-
of
static <T> TagFactory<T> of(net.minecraft.util.registry.RegistryKey<? extends net.minecraft.util.registry.Registry<T>> registryKey, String dataType)Create a new tag factory for specified registry.- Parameters:
registryKey
- the key of the registry.dataType
- the data type of this tag group, vanilla uses "tags/[plural]" format for built-in groups.
-
of
-
create
-