Interface IChunkGet
- All Superinterfaces:
IBlocks
,InputExtent
,ITileInput
,Trimable
- All Known Subinterfaces:
IChunk
,IQueueChunk<T>
- All Known Implementing Classes:
CharGetBlocks
,ChunkHolder
,NullChunk
,NullChunkGet
An interface for getting blocks.
-
Method Summary
Modifier and TypeMethodDescription<T extends Future<T>>
Tdefault BiomeType
getBiome
(BlockVector3 position) Get the biome at the given location.getBiomeType
(int x, int y, int z) getBlock
(int x, int y, int z) default IChunkGet
getCopy()
int
getEmittedLight
(int x, int y, int z) getFullBlock
(int x, int y, int z) int[]
getHeightMap
(HeightMapType type) int
getMaxY()
Max y value for the chunk's world (inclusive)int
getMinY()
Min y value for the chunk's world (inclusive)int
getSkyLight
(int x, int y, int z) boolean
default void
optimize()
void
setCreateCopy
(boolean createCopy) void
setHeightmapToGet
(HeightMapType type, int[] data) void
setLightingToGet
(char[][] lighting, int startSectionIndex, int endSectionIndex) Flush the block lighting array (section*blocks) to the chunk GET between the given section indices.void
setSkyLightingToGet
(char[][] lighting, int startSectionIndex, int endSectionIndex) Flush the sky lighting array (section*blocks) to the chunk GET between the given section indices.Methods inherited from interface com.fastasyncworldedit.core.queue.IBlocks
getBitMask, getEntities, getMaxSectionPosition, getMinSectionPosition, getSectionCount, getTile, getTiles, hasSection, load, loadIfPresent, removeSectionLighting, reset, toByteArray, toByteArray, trim
Methods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBlock, getBrightness, getBrightness, getEmittedLight, getFullBlock, getOpacity, getOpacity, getSkyLight
Methods inherited from interface com.fastasyncworldedit.core.queue.ITileInput
getTile
-
Method Details
-
getFullBlock
- Specified by:
getFullBlock
in interfaceInputExtent
-
getBiomeType
- Specified by:
getBiomeType
in interfaceIBlocks
- Specified by:
getBiomeType
in interfaceInputExtent
-
getBiome
Description copied from interface:InputExtent
Get the biome at the given location.If there is no biome available, then the ocean biome should be returned.
As implementation varies per Minecraft version, this may not exactly get this positions biome. On versions prior to 1.15, this will get the entire column. On later versions it will get the 4x4x4 cube's biome.
- Specified by:
getBiome
in interfaceInputExtent
- Parameters:
position
- the (x, y, z) location to check the biome at- Returns:
- the biome at the location
- See Also:
-
getBlock
- Specified by:
getBlock
in interfaceIBlocks
- Specified by:
getBlock
in interfaceInputExtent
-
getSkyLight
int getSkyLight(int x, int y, int z) - Specified by:
getSkyLight
in interfaceInputExtent
-
getEmittedLight
int getEmittedLight(int x, int y, int z) - Specified by:
getEmittedLight
in interfaceInputExtent
-
getHeightMap
- Specified by:
getHeightMap
in interfaceInputExtent
-
optimize
default void optimize() -
call
-
getEntity
-
isCreateCopy
boolean isCreateCopy() -
setCreateCopy
void setCreateCopy(boolean createCopy) -
getCopy
-
setLightingToGet
void setLightingToGet(char[][] lighting, int startSectionIndex, int endSectionIndex) Flush the block lighting array (section*blocks) to the chunk GET between the given section indices. Negative allowed.- Parameters:
lighting
- lighting arraystartSectionIndex
- lowest section indexendSectionIndex
- highest section index
-
setSkyLightingToGet
void setSkyLightingToGet(char[][] lighting, int startSectionIndex, int endSectionIndex) Flush the sky lighting array (section*blocks) to the chunk GET between the given section indices. Negative allowed.- Parameters:
lighting
- sky lighting arraystartSectionIndex
- lowest section indexendSectionIndex
- highest section index
-
setHeightmapToGet
-
getMaxY
int getMaxY()Max y value for the chunk's world (inclusive) -
getMinY
int getMinY()Min y value for the chunk's world (inclusive)
-