Class ArrayHeightMap
java.lang.Object
com.fastasyncworldedit.core.math.heightmap.ScalableHeightMap
com.fastasyncworldedit.core.math.heightmap.ArrayHeightMap
- All Implemented Interfaces:
HeightMap
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fastasyncworldedit.core.math.heightmap.ScalableHeightMap
ScalableHeightMap.Shape
-
Field Summary
Fields inherited from class com.fastasyncworldedit.core.math.heightmap.ScalableHeightMap
size, size2
-
Constructor Summary
ConstructorDescriptionArrayHeightMap
(char[][] height, double scale) New height map represented by char array[][] of values x*z to be scaled given a set size. -
Method Summary
Methods inherited from class com.fastasyncworldedit.core.math.heightmap.ScalableHeightMap
fromClipboard, fromPNG, fromShape
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fastasyncworldedit.core.math.heightmap.HeightMap
applyHeightMapData, generateHeightData, perform
-
Constructor Details
-
ArrayHeightMap
public ArrayHeightMap(char[][] height, double scale) New height map represented by char array[][] of values x*z to be scaled given a set size. Limited 0->65535- Parameters:
height
- array of height valuesscale
- "scale" of the heightmap. Typically the normalised height of the world, or the maximum possible value (256 for a PNG heightmap)
-
-
Method Details
-
setSize
public void setSize(int size) - Specified by:
setSize
in interfaceHeightMap
- Overrides:
setSize
in classScalableHeightMap
-
getHeight
public double getHeight(int x, int z) - Specified by:
getHeight
in interfaceHeightMap
- Overrides:
getHeight
in classScalableHeightMap
-