Class ExtentHeightCacher
java.lang.Object
com.sk89q.worldedit.extent.AbstractDelegateExtent
com.fastasyncworldedit.core.extent.PassthroughExtent
com.fastasyncworldedit.core.extent.ExtentHeightCacher
- All Implemented Interfaces:
Extent
,InputExtent
,OutputExtent
-
Field Summary
Fields inherited from class com.sk89q.worldedit.extent.AbstractDelegateExtent
extent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getNearestSurfaceTerrainBlock
(int x, int z, int y, int minY, int maxY) Gets y value for the nearest block that is considered the surface of the terrain (cave roof/floor, mountain surface, etc).void
reset()
Methods inherited from class com.fastasyncworldedit.core.extent.PassthroughExtent
addCaves, addOre, addOres, addSchems, apply, apply, cancel, center, commit, contains, countBlocks, countBlocks, disableQueue, enableQueue, generate, getBlock, getBlockDistribution, getBlockDistributionWithData, getFullBlock, getHighestTerrainBlock, getHighestTerrainBlock, getNearestSurfaceLayer, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, isQueueEnabled, isWorld, lazyCopy, regenerateChunk, replaceBlocks, replaceBlocks, replaceBlocks, setBiome, setBlock, setBlocks, setBlocks, setBlocks, setTile, spawnResource
Methods inherited from class com.sk89q.worldedit.extent.AbstractDelegateExtent
addPostProcessor, addProcessor, commitBefore, createEntity, createEntity, disableHistory, fullySupports3DBiomes, getBiome, getBiomeType, getBlock, getBrightness, getEmittedLight, getEntities, getEntities, getExtent, getFullBlock, getMaximumPoint, getMaxY, getMinimumPoint, getMinY, getSkyLight, relight, relightBlock, relightSky, removeEntity, setBiome, setBlock, setBlockLight, setChangeSet, setSkyLight, tile, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.extent.Extent
contains, enableHistory
Methods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBrightness, getEmittedLight, getHeightMap, getOpacity, getOpacity, getSkyLight
Methods inherited from interface com.sk89q.worldedit.extent.OutputExtent
setBiome, setBlockLight, setHeightMap, setSkyLight
-
Constructor Details
-
ExtentHeightCacher
-
-
Method Details
-
reset
public void reset() -
getNearestSurfaceTerrainBlock
public int getNearestSurfaceTerrainBlock(int x, int z, int y, int minY, int maxY) Description copied from interface:Extent
Gets y value for the nearest block that is considered the surface of the terrain (cave roof/floor, mountain surface, etc). Searches in the x,z column given.- Specified by:
getNearestSurfaceTerrainBlock
in interfaceExtent
- Overrides:
getNearestSurfaceTerrainBlock
in classPassthroughExtent
- Parameters:
x
- column xz
- column zy
- start yminY
- minimum y height to consider. Inclusive.maxY
- maximum y height to consider. Inclusive.- Returns:
- The y value of the nearest terrain block
-