Class FabricDataGenerationEntrypoint
java.lang.Object
net.ixdarklord.coolcatcore.api.core.fabric.FabricDataGenerationEntrypoint
- All Implemented Interfaces:
net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint
public class FabricDataGenerationEntrypoint
extends Object
implements net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint
Runs a mod's
DataGenerationConstructors on Fabric. List it as the mod's own "fabric-datagen"
entrypoint, next to the constructor under "coolcatlib:datagen":
"fabric-datagen": ["net.ixdarklord.coolcatcore.api.core.fabric.FabricDataGenerationEntrypoint"],
"coolcatlib:datagen": ["com.example.data.MyModData"]
It can also be extended to override the other DataGeneratorEntrypoint methods (registries, key order).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonInitializeDataGenerator(net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator generator) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint
addJsonKeySortOrders, buildRegistry, getEffectiveModId
-
Constructor Details
-
FabricDataGenerationEntrypoint
public FabricDataGenerationEntrypoint()
-
-
Method Details
-
onInitializeDataGenerator
public void onInitializeDataGenerator(net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator generator) - Specified by:
onInitializeDataGeneratorin interfacenet.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint
-