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>>
TReturns the compound tag describing the entity with the given UUID, if any.default 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 key) int
getEmittedLight
(int x, int y, int z) default CompoundTag
Deprecated, for removal: This API element is subject to removal in a future version.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) default CompoundTag
getTile
(int x, int y, int z) Deprecated, for removal: This API element is subject to removal in a future version.boolean
default void
lockCall()
Lock thecall(IChunkSet, Runnable)
method to the current thread using a reentrant lock.default void
optimize()
int
setCreateCopy
(boolean createCopy) Not for external API use.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.default void
Unlockcall(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, hasSection, load, loadIfPresent, removeSectionLighting, reset, tile, tiles, toByteArray, toByteArray, trim
Methods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBlock, getBrightness, getBrightness, getEmittedLight, getFullBlock, getOpacity, getOpacity, getSkyLight
-
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
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:
getTile
in interfaceIBlocks
- Specified by:
getTile
in interfaceITileInput
-
isCreateCopy
boolean isCreateCopy() -
setCreateCopy
int setCreateCopy(boolean createCopy) Not for external API use. Internal use only. -
getCopy
-
lockCall
default void lockCall()Lock thecall(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(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)
-