public abstract class ChiseledTextureProvider
extends com.supermartijn642.core.generator.ResourceGenerator
| Modifier and Type | Class and Description |
|---|---|
protected class |
ChiseledTextureProvider.PaletteMap |
| Constructor and Description |
|---|
ChiseledTextureProvider(java.lang.String modid,
com.supermartijn642.core.generator.ResourceCache cache) |
| 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.
|
void |
generate() |
java.lang.String |
getName() |
void |
save() |
public ChiseledTextureProvider(java.lang.String modid,
com.supermartijn642.core.generator.ResourceCache cache)
public java.lang.String getName()
getName in class com.supermartijn642.core.generator.ResourceGeneratorpublic void generate()
generate in class com.supermartijn642.core.generator.ResourceGeneratorpublic void save()
save in class com.supermartijn642.core.generator.ResourceGeneratorprotected 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)