Class FabricTagProvider<T>

java.lang.Object
net.minecraft.data.server.tag.TagProvider<T>
net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider<T>
All Implemented Interfaces:
DataProvider
Direct Known Subclasses:
FabricTagProvider.BlockEntityTypeTagProvider, FabricTagProvider.BlockTagProvider, FabricTagProvider.EnchantmentTagProvider, FabricTagProvider.EntityTypeTagProvider, FabricTagProvider.FluidTagProvider, FabricTagProvider.ItemTagProvider

public abstract class FabricTagProvider<T> extends TagProvider<T>
Implement this class (or one of the inner classes) to generate a tag list.

Register your implementation using FabricDataGenerator.Pack.addProvider(net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator.Pack.Factory<T>) in a DataGeneratorEntrypoint.

When generating tags for modded dynamic registry entries (such as biomes), either the entry must be added to the registry using DataGeneratorEntrypoint.buildRegistry(RegistryBuilder) or TagBuilder.addOptional(Identifier) must be used. Otherwise, the data generator cannot find the entry and crashes.

Commonly used implementations of this class are provided:

See Also: