Class ColorMap

java.lang.Object
com.prupe.mcpatcher.mal.biome.ColorMap
All Implemented Interfaces:
IColorMap
Direct Known Subclasses:
ColorMap.Grid, ColorMap.TempHumidity

@Environment(CLIENT) public abstract class ColorMap extends Object implements IColorMap
  • Field Details

    • useSwampColors

      public static final boolean useSwampColors
    • BLOCK_COLORMAP_DIR

      public static final String BLOCK_COLORMAP_DIR
      See Also:
    • unusedPNGs

      public static final List<ResourceLocation> unusedPNGs
    • resource

      protected final ResourceLocation resource
    • map

      protected final int[] map
    • width

      protected final int width
    • height

      protected final int height
    • maxX

      protected final float maxX
    • maxY

      protected final float maxY
  • Method Details

    • loadVanillaColorMap

      public static IColorMap loadVanillaColorMap(ResourceLocation vanillaImage, ResourceLocation swampImage)
    • loadFixedColorMap

      public static IColorMap loadFixedColorMap(boolean useCustom, ResourceLocation resource)
    • loadColorMap

      public static IColorMap loadColorMap(boolean useCustom, ResourceLocation resource, Properties properties)
    • reset

      public static void reset()
    • reloadColorMapSettings

      public static void reloadColorMapSettings(PropertiesFile properties)
    • computeXY

      protected abstract void computeXY(BiomeGenBase biome, int i, int j, int k, float[] f)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getColorMultiplier

      public final int getColorMultiplier(IBlockAccess blockAccess, int i, int j, int k)
      Specified by:
      getColorMultiplier in interface IColorMap
    • getColorMultiplierF

      public final float[] getColorMultiplierF(IBlockAccess blockAccess, int i, int j, int k)
      Specified by:
      getColorMultiplierF in interface IColorMap
    • claimResources

      public void claimResources(Collection<ResourceLocation> resources)
      Specified by:
      claimResources in interface IColorMap
    • getRGB

      protected int getRGB(float x, float y)
    • noise0to1

      protected static float noise0to1(int i, int j, int k, int l)
    • noiseMinus1to1

      protected static float noiseMinus1to1(int i, int j, int k, int l)
    • clamp

      protected static float clamp(float i, float min, float max)
    • clamp

      protected static int clamp(int i, int min, int max)