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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetNearestSurfaceTerrainBlock(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).voidreset()Methods inherited from class com.fastasyncworldedit.core.extent.PassthroughExtent
addCaves, addOre, addOres, addSchems, apply, apply, cancel, center, contains, countBlocks, countBlocks, createEntity, createEntity, disableQueue, enableQueue, generate, getBiome, getBiomeType, getBlock, getBlock, getBlockDistribution, getBlockDistributionWithData, getEntities, getEntities, getFullBlock, getFullBlock, getHighestTerrainBlock, getHighestTerrainBlock, getNearestSurfaceLayer, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, isQueueEnabled, isWorld, lazyCopy, regenerateChunk, removeEntity, replaceBlocks, replaceBlocks, replaceBlocks, setBiome, setBiome, setBlock, setBlock, setBlocks, setBlocks, setBlocks, setTile, spawnResourceMethods inherited from class com.sk89q.worldedit.extent.AbstractDelegateExtent
addPostProcessor, addProcessor, commit, commitBefore, disableHistory, fullySupports3DBiomes, getBrightness, getEmittedLight, getExtent, getMaximumPoint, getMaxY, getMinimumPoint, getMinY, getSkyLight, relight, relightBlock, relightSky, setBlockLight, setChangeSet, setSkyLight, tile, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sk89q.worldedit.extent.Extent
contains, enableHistoryMethods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBrightness, getEmittedLight, getHeightMap, getOpacity, getOpacity, getSkyLightMethods 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:ExtentGets 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:
getNearestSurfaceTerrainBlockin interfaceExtent- Overrides:
getNearestSurfaceTerrainBlockin 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
-