Interface IChunkSet
- All Superinterfaces:
IBlocks,OutputExtent,Trimable
- All Known Subinterfaces:
IChunk,IQueueChunk<T>
- All Known Implementing Classes:
BitSetBlocks,CharSetBlocks,ChunkHolder,NullChunk,ThreadUnsafeCharBlocks
Interface for setting blocks
-
Method Summary
Modifier and TypeMethodDescriptiondefault Operationcommit()Return anOperationthat should be called to tie up loose ends (such as to commit changes in a buffer).default IChunkSetCreate an entirely distinct copy of this SET instance.voidentity(FaweCompoundTag tag) BiomeType[][]This will return only biomes SET to the EXTENT or QUEUE.default intdefault Map<HeightMapType, int[]> char[][]getLight()Get the side effects to be used when settings these blockschar[][]default booleanbooleanhasBiomes(int layer) If the given layer has biomes stored to be set to the world.default booleanhasLight()booleanisEmpty()default booleanvoidremoveEntity(UUID uuid) reset()booleandefault booleansetBiome(BlockVector3 position, BiomeType biome) Set the biome.default voidsetBitMask(int bitMask) <T extends BlockStateHolder<T>>
booleansetBlock(int x, int y, int z, T holder) voidsetBlockLight(int x, int y, int z, int value) voidsetBlocks(int layer, char[] data) default voidsetEntity(CompoundTag tag) Deprecated, for removal: This API element is subject to removal in a future version.default voidsetFastMode(boolean fastMode) voidsetFullBright(int layer) voidsetHeightMap(HeightMapType type, int[] heightMap) voidsetLightLayer(int layer, char[] toSet) voidsetSideEffectSet(SideEffectSet sideEffectSet) Set the side effects to be used when settings these blocksvoidsetSkyLight(int x, int y, int z, int value) voidsetSkyLightLayer(int layer, char[] toSet) default booleansetTile(int x, int y, int z, CompoundTag tile) Deprecated, for removal: This API element is subject to removal in a future version.booleantile(int x, int y, int z, FaweCompoundTag tag) Sets a tile/block entity at the given location.Methods inherited from interface com.fastasyncworldedit.core.queue.IBlocks
entities, getBiomeType, getBlock, getEntities, getMaxSectionPosition, getMinSectionPosition, getSectionCount, getTile, getTiles, getX, getZ, hasNonEmptySection, hasSection, load, loadIfPresent, removeSectionLighting, tile, tiles, toByteArray, toByteArray, trimMethods inherited from interface com.sk89q.worldedit.extent.OutputExtent
fullySupports3DBiomes, setBiome, setBlock, setBlockLight, setSkyLight
-
Method Details
-
setBiome
- Specified by:
setBiomein interfaceOutputExtent
-
setBiome
Description copied from interface:OutputExtentSet the biome.As implementation varies per Minecraft version, this may set more than this position's biome. On versions prior to 1.15, this will set the entire column. On later versions it will set the 4x4x4 cube.
- Specified by:
setBiomein interfaceOutputExtent- Parameters:
position- the (x, y, z) location to set the biome atbiome- the biome to set to- Returns:
- true if the biome was successfully set (return value may not be accurate)
-
setBlock
- Specified by:
setBlockin interfaceOutputExtent
-
setBlocks
void setBlocks(int layer, char[] data) -
isEmpty
boolean isEmpty() -
setTile
@Deprecated(forRemoval=true, since="2.11.2") default boolean setTile(int x, int y, int z, CompoundTag tile) throws WorldEditException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setTilein interfaceOutputExtent- Throws:
WorldEditException
-
tile
Description copied from interface:OutputExtentSets a tile/block entity at the given location.- Specified by:
tilein interfaceOutputExtent- Parameters:
x- the x positiony- the y positionz- the z positiontag- the tile/block entity to set- Returns:
trueif the tile/block entity was placed
-
setBlockLight
void setBlockLight(int x, int y, int z, int value) - Specified by:
setBlockLightin interfaceOutputExtent
-
setSkyLight
void setSkyLight(int x, int y, int z, int value) - Specified by:
setSkyLightin interfaceOutputExtent
-
setHeightMap
- Specified by:
setHeightMapin interfaceOutputExtent
-
setLightLayer
void setLightLayer(int layer, char[] toSet) -
setSkyLightLayer
void setSkyLightLayer(int layer, char[] toSet) -
setFullBright
void setFullBright(int layer) -
setEntity
Deprecated, for removal: This API element is subject to removal in a future version. -
entity
-
removeEntity
-
getEntityRemoves
-
getBiomes
BiomeType[][] getBiomes()This will return only biomes SET to the EXTENT or QUEUE. This will NOT return the current biomes in the world. This is used for history purposes.- Returns:
- Array of biomes set
-
hasBiomes
default boolean hasBiomes() -
getLight
char[][] getLight() -
getSkyLight
char[][] getSkyLight() -
hasLight
default boolean hasLight() -
setFastMode
default void setFastMode(boolean fastMode) -
isFastMode
default boolean isFastMode() -
setBitMask
default void setBitMask(int bitMask) -
getBitMask
default int getBitMask()- Specified by:
getBitMaskin interfaceIBlocks
-
getHeightMaps
-
reset
IChunkSet reset() -
commit
Description copied from interface:OutputExtentReturn anOperationthat should be called to tie up loose ends (such as to commit changes in a buffer).- Specified by:
commitin interfaceOutputExtent- Returns:
- an operation or null if there is none to execute
-
hasBiomes
boolean hasBiomes(int layer) If the given layer has biomes stored to be set to the world. Can be negative- Parameters:
layer- layer to check- Returns:
- if the layer has biomes stored to be set to the world
-
createCopy
Create an entirely distinct copy of this SET instance. All mutable data must be copied to sufficiently prevent leakage between the copy and the original.- Returns:
- distinct new
instance
-
setSideEffectSet
Set the side effects to be used when settings these blocks- Since:
- 2.12.3
-
getSideEffectSet
Get the side effects to be used when settings these blocks- Since:
- 2.12.3
-