public abstract class FusionTextureMetadataProvider
extends java.lang.Object
implements net.minecraft.data.IDataProvider
generate().
Users may use addTextureMetadata(ResourceLocation, TextureType, Object) to add metadata which should be generated.
Created 02/05/2023 by SuperMartijn642
| Constructor and Description |
|---|
FusionTextureMetadataProvider(java.lang.String modid,
net.minecraft.data.DataGenerator generator) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addTextureMetadata(net.minecraft.util.ResourceLocation location,
TextureType<T> textureType,
T data)
Adds texture metadata to be generated.
|
protected abstract void |
generate()
Adds texture metadata which should be generated through
addTextureMetadata(ResourceLocation, TextureType, Object). |
java.lang.String |
getName() |
void |
run(net.minecraft.data.DirectoryCache cache) |
public FusionTextureMetadataProvider(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()
addTextureMetadata(ResourceLocation, TextureType, Object).public final <T> void addTextureMetadata(net.minecraft.util.ResourceLocation location,
TextureType<T> textureType,
T data)
location - location of the texturetextureType - type of the texturedata - metadata to be serializedpublic java.lang.String getName()
getName in interface net.minecraft.data.IDataProvider