Class ChiseledTextureProvider.PaletteMap
java.lang.Object
com.supermartijn642.rechiseled.api.ChiseledTextureProvider.PaletteMap
- Enclosing class:
- ChiseledTextureProvider
-
Method Summary
Modifier and TypeMethodDescriptionapplyToTexture(net.minecraft.resources.ResourceLocation texture, String outputLocation) Applies this palette map to the given texture, i.e.When the palette map is applied, any pixels with missing colors will be kept.
-
Method Details
-
applyToTexture
public ChiseledTextureProvider.PaletteMap applyToTexture(net.minecraft.resources.ResourceLocation texture, String outputLocation) Applies this palette map to the given texture, i.e. colors in the given texture will be swapped for the corresponding color in this palette map. The given texture should consist of exclusively colors used in the 'from palette' of this palette map.The mapped texture will be saved at assets/modid/textures/outputLocation.png.
- Parameters:
texture- the texture to apply this palette map tooutputLocation- location to save the mapped texture at- Throws:
IllegalArgumentException- whentextureisnull, or whenoutputLocation.trim()isnullor emptyIllegalStateException- when there is already a texture to be generated foroutputLocation
-
ignoreMissing
When the palette map is applied, any pixels with missing colors will be kept.
-