Class SnowHeightMap
java.lang.Object
com.sk89q.worldedit.math.convolution.SnowHeightMap
Allows applications of Kernels onto the region's height map for snow layers
 
Currently only used for snow layer smoothing (with a GaussianKernel)
.- 
Constructor SummaryConstructorsConstructorDescriptionSnowHeightMap(EditSession session, Region region, Mask mask) Constructs the SnowHeightMap.
- 
Method SummaryModifier and TypeMethodDescriptionintapplyChanges(float[] data, int layerBlocks) Apply a raw heightmap to a region.float[]applyFilter(HeightMapFilter filter, int iterations) Compute the new heightmap with the filter 'iterations' amount times.
- 
Constructor Details- 
SnowHeightMapConstructs the SnowHeightMap.- Parameters:
- session- an edit session
- region- the region
- mask- optional mask for the height map
 
 
- 
- 
Method Details- 
applyFilterCompute the new heightmap with the filter 'iterations' amount times.- Parameters:
- filter- the filter
- iterations- the number of iterations
- Returns:
- new generated heightmap of the terrain
 
- 
applyChangesApply a raw heightmap to a region. Use snow layers.- Parameters:
- data- the data
- layerBlocks- amount of blocks with type SNOW_BLOCK
- Returns:
- number of blocks affected
- Throws:
- MaxChangedBlocksException- if the maximum block change limit is exceeded
 
 
-