Data Generator
Data generation for Wearables.
Overview
This class is responsible for generating the data for the Wearables mod.
It uses the Fabric Data Generator API to create JSON files for slot types, slot layouts, and tags.
We implement the DataGeneratorEntrypoint interface which allows us to automatically register and be discovered by the Fabric data generation system.
Usage
This method initializes the data generator by creating a new data pack and adding providers to it.
@Override
public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) {
FabricDataGenerator.Pack pack = fabricDataGenerator.createPack();
}
Methods
| Method | Description |
|---|---|
onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) | Creates a new data pack for mod functionality. |
Events
This class does not fire or use any events.
