Class Heightmap

java.lang.Object
net.pl3x.map.core.Keyed
net.pl3x.map.core.renderer.heightmap.Heightmap
Direct Known Subclasses:
EvenOddHeightmap, EvenOddLowContrastHeightmap, EvenOddModernHeightmap, EvenOddOldSchoolHeightmap, LowContrastHeightmap, ModernHeightmap, NoneHeightmap, OldSchoolHeightmap

public abstract class Heightmap extends Keyed
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int[]
     
    final int[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Heightmap(@NotNull String name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(@Nullable Object o)
     
    int
    getColor(int y1, int y2, int heightColor, int step)
     
    abstract int
    getColor(@NotNull Region region, int blockX, int blockZ)
     
    int
     
    @NotNull String
     

    Methods inherited from class net.pl3x.map.core.Keyed

    getKey

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • x

      public final int[] x
    • z

      public final int[] z
  • Constructor Details

    • Heightmap

      public Heightmap(@NotNull @NotNull String name)
  • Method Details

    • getColor

      public abstract int getColor(@NotNull @NotNull Region region, int blockX, int blockZ)
    • getColor

      public int getColor(int y1, int y2, int heightColor, int step)
    • equals

      public boolean equals(@Nullable @Nullable Object o)
      Overrides:
      equals in class Keyed
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Keyed
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Keyed