public abstract class FusionModelProvider
extends java.lang.Object
implements net.minecraft.data.IDataProvider
generate().
Users may use addModel(ResourceLocation, ModelInstance) to add models which should be generated.
Created 01/05/2023 by SuperMartijn642
| Constructor and Description |
|---|
FusionModelProvider(java.lang.String modid,
net.minecraft.data.DataGenerator generator) |
| Modifier and Type | Method and Description |
|---|---|
void |
addModel(net.minecraft.util.ResourceLocation location,
ModelInstance<?> model)
Adds a model to be generated.
|
protected abstract void |
generate()
Adds models which should be generated through
addModel(ResourceLocation, ModelInstance). |
java.lang.String |
getName() |
void |
run(net.minecraft.data.DirectoryCache cache) |
public FusionModelProvider(java.lang.String modid,
net.minecraft.data.DataGenerator generator)
modid - modid of the mod which creates the generatorpublic final void run(net.minecraft.data.DirectoryCache cache)
throws java.io.IOException
run in interface net.minecraft.data.IDataProviderjava.io.IOExceptionprotected abstract void generate()
addModel(ResourceLocation, ModelInstance).public final void addModel(net.minecraft.util.ResourceLocation location,
ModelInstance<?> model)
location - location of the modelmodel - model instance to be serializedpublic java.lang.String getName()
getName in interface net.minecraft.data.IDataProvider