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>>
Tcall(IQueueExtent<? extends IChunk> owner, IChunkSet set, Runnable finalize) Returns the compound tag describing the entity with the given UUID, if any.default BiomeTypegetBiome(BlockVector3 position) Get the biome at the given location.getBiomeType(int x, int y, int z) getBlock(int x, int y, int z) default IChunkGetgetCopy(int key) intgetEmittedLight(int x, int y, int z) default CompoundTagDeprecated, for removal: This API element is subject to removal in a future version.getFullBlock(int x, int y, int z) Get the entities in the chunk as "full" entities.int[]getHeightMap(HeightMapType type) intgetMaxY()Max y value for the chunk's world (inclusive)intgetMinY()Min y value for the chunk's world (inclusive)intgetSkyLight(int x, int y, int z) default CompoundTaggetTile(int x, int y, int z) Deprecated, for removal: This API element is subject to removal in a future version.booleandefault voidlockCall()Lock thecall(IQueueExtent, IChunkSet, Runnable)method to the current thread using a reentrant lock.default voidoptimize()intsetCreateCopy(boolean createCopy) Not for external API use.voidsetHeightmapToGet(HeightMapType type, int[] data) voidsetLightingToGet(char[][] lighting, int startSectionIndex, int endSectionIndex) Flush the block lighting array (section*blocks) to the chunk GET between the given section indices.voidsetSkyLightingToGet(char[][] lighting, int startSectionIndex, int endSectionIndex) Flush the sky lighting array (section*blocks) to the chunk GET between the given section indices.default voidUnlockcall(IQueueExtent, IChunkSet, Runnable)(and other related methods) to executions from other threadsMethods inherited from interface com.fastasyncworldedit.core.queue.IBlocks
entities, getBitMask, getEntities, getMaxSectionPosition, getMinSectionPosition, getSectionCount, getTiles, getX, getZ, hasNonEmptySection, hasSection, load, loadIfPresent, removeSectionLighting, reset, tile, tiles, toByteArray, toByteArray, trimMethods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBlock, getBrightness, getBrightness, getEmittedLight, getFullBlock, getOpacity, getOpacity, getSkyLight
-
Method Details
-
getFullBlock
- Specified by:
getFullBlockin interfaceInputExtent
-
getBiomeType
- Specified by:
getBiomeTypein interfaceIBlocks- Specified by:
getBiomeTypein interfaceInputExtent
-
getBiome
Description copied from interface:InputExtentGet 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:
getBiomein interfaceInputExtent- Parameters:
position- the (x, y, z) location to check the biome at- Returns:
- the biome at the location
- See Also:
-
getBlock
- Specified by:
getBlockin interfaceIBlocks- Specified by:
getBlockin interfaceInputExtent
-
getSkyLight
int getSkyLight(int x, int y, int z) - Specified by:
getSkyLightin interfaceInputExtent
-
getEmittedLight
int getEmittedLight(int x, int y, int z) - Specified by:
getEmittedLightin interfaceInputExtent
-
getHeightMap
- Specified by:
getHeightMapin interfaceInputExtent
-
optimize
default void optimize() -
call
<T extends Future<T>> T call(IQueueExtent<? extends IChunk> owner, IChunkSet set, Runnable finalize) -
getEntity
Deprecated, for removal: This API element is subject to removal in a future version. -
entity
Returns the compound tag describing the entity with the given UUID, if any.- Parameters:
uuid- the uuid of the entity- Returns:
- the compound tag describing the entity with the given UUID, if any
-
getTile
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getTilein interfaceIBlocks- Specified by:
getTilein interfaceITileInput
-
getFullEntities
Get the entities in the chunk as "full" entities.- Since:
- 2.13.0;
-
isCreateCopy
boolean isCreateCopy() -
setCreateCopy
int setCreateCopy(boolean createCopy) Not for external API use. Internal use only. -
getCopy
-
lockCall
default void lockCall()Lock thecall(IQueueExtent, IChunkSet, Runnable)method to the current thread using a reentrant lock. Also locks related methods e.g.setCreateCopy(boolean)- Since:
- 2.8.2
-
unlockCall
default void unlockCall()Unlockcall(IQueueExtent, IChunkSet, Runnable)(and other related methods) to executions from other threads- Since:
- 2.8.2
-
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)
-