Class ChiseledTextureProvider.PaletteMap

java.lang.Object
com.supermartijn642.rechiseled.api.ChiseledTextureProvider.PaletteMap
Enclosing class:
ChiseledTextureProvider

protected class ChiseledTextureProvider.PaletteMap extends Object
  • 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 to
      outputLocation - location to save the mapped texture at
      Throws:
      IllegalArgumentException - when texture is null, or when outputLocation.trim() is null or empty
      IllegalStateException - when there is already a texture to be generated for outputLocation
    • ignoreMissing

      public ChiseledTextureProvider.PaletteMap ignoreMissing()
      When the palette map is applied, any pixels with missing colors will be kept.