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 Operation
commit()
Return anOperation
that should be called to tie up loose ends (such as to commit changes in a buffer).default IChunkSet
Create an entirely distinct copy of this SET instance.void
entity
(FaweCompoundTag tag) BiomeType[][]
This will return only biomes SET to the EXTENT or QUEUE.default int
default Map
<HeightMapType, int[]> char[][]
getLight()
char[][]
default boolean
boolean
hasBiomes
(int layer) If the given layer has biomes stored to be set to the world.default boolean
hasLight()
boolean
isEmpty()
default boolean
void
removeEntity
(UUID uuid) reset()
boolean
default boolean
setBiome
(BlockVector3 position, BiomeType biome) Set the biome.default void
setBitMask
(int bitMask) <T extends BlockStateHolder<T>>
booleansetBlock
(int x, int y, int z, T holder) void
setBlockLight
(int x, int y, int z, int value) void
setBlocks
(int layer, char[] data) default void
setEntity
(CompoundTag tag) Deprecated, for removal: This API element is subject to removal in a future version.default void
setFastMode
(boolean fastMode) void
setFullBright
(int layer) void
setHeightMap
(HeightMapType type, int[] heightMap) void
setLightLayer
(int layer, char[] toSet) void
setSkyLight
(int x, int y, int z, int value) void
setSkyLightLayer
(int layer, char[] toSet) default boolean
setTile
(int x, int y, int z, CompoundTag tile) Deprecated, for removal: This API element is subject to removal in a future version.boolean
tile
(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, hasSection, load, loadIfPresent, removeSectionLighting, tile, tiles, toByteArray, toByteArray, trim
Methods inherited from interface com.sk89q.worldedit.extent.OutputExtent
fullySupports3DBiomes, setBiome, setBlock, setBlockLight, setSkyLight
-
Method Details
-
setBiome
- Specified by:
setBiome
in interfaceOutputExtent
-
setBiome
Description copied from interface:OutputExtent
Set 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:
setBiome
in 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:
setBlock
in 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:
setTile
in interfaceOutputExtent
- Throws:
WorldEditException
-
tile
Description copied from interface:OutputExtent
Sets a tile/block entity at the given location.- Specified by:
tile
in interfaceOutputExtent
- Parameters:
x
- the x positiony
- the y positionz
- the z positiontag
- the tile/block entity to set- Returns:
true
if the tile/block entity was placed
-
setBlockLight
void setBlockLight(int x, int y, int z, int value) - Specified by:
setBlockLight
in interfaceOutputExtent
-
setSkyLight
void setSkyLight(int x, int y, int z, int value) - Specified by:
setSkyLight
in interfaceOutputExtent
-
setHeightMap
- Specified by:
setHeightMap
in 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:
getBitMask
in interfaceIBlocks
-
getHeightMaps
-
reset
IChunkSet reset() -
commit
Description copied from interface:OutputExtent
Return anOperation
that should be called to tie up loose ends (such as to commit changes in a buffer).- Specified by:
commit
in 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
-