public abstract class ChiseledTextureProvider
extends java.lang.Object
implements net.minecraft.data.IDataProvider
| Modifier and Type | Class and Description |
|---|---|
protected class |
ChiseledTextureProvider.PaletteMap |
| Constructor and Description |
|---|
ChiseledTextureProvider(java.lang.String modid,
net.minecraft.data.DataGenerator generator,
net.minecraftforge.common.data.ExistingFileHelper existingFileHelper) |
| Modifier and Type | Method and Description |
|---|---|
protected ChiseledTextureProvider.PaletteMap |
createPaletteMap(net.minecraft.util.ResourceLocation oldPalette,
net.minecraft.util.ResourceLocation newPalette)
Creates a map from colors in
oldPalette to newPalette. |
protected void |
createPlankTextures(net.minecraft.util.ResourceLocation plankTexture,
java.lang.String outputLocation)
Maps all oak plank variants in rechiseled to the given plank texture.
|
protected abstract void |
createTextures()
A palette map generates a map of colors from one texture to another.
|
java.lang.String |
getName() |
void |
run(net.minecraft.data.DirectoryCache cache) |
public ChiseledTextureProvider(java.lang.String modid,
net.minecraft.data.DataGenerator generator,
net.minecraftforge.common.data.ExistingFileHelper existingFileHelper)
public java.lang.String getName()
getName in interface net.minecraft.data.IDataProviderpublic void run(net.minecraft.data.DirectoryCache cache)
throws java.io.IOException
run in interface net.minecraft.data.IDataProviderjava.io.IOExceptionprotected abstract void createTextures()
A palette map can be obtained using createPaletteMap(ResourceLocation, ResourceLocation)
and applied using ChiseledTextureProvider.PaletteMap.applyToTexture(ResourceLocation, String).
All mapped textures will be saved and written to file automatically.
createPlankTextures(ResourceLocation, String) will map all rechiseled's
oak plank variants to the given plank texture.
protected ChiseledTextureProvider.PaletteMap createPaletteMap(net.minecraft.util.ResourceLocation oldPalette, net.minecraft.util.ResourceLocation newPalette)
oldPalette to newPalette.
The palette map can be applied to any texture using the old palette
to generate a texture with the new palette.oldPalette - colors to map fromnewPalette - colors to map tojava.lang.IllegalArgumentException - when oldPalette or newPalette is nullprotected void createPlankTextures(net.minecraft.util.ResourceLocation plankTexture,
java.lang.String outputLocation)