Package com.plotsquared.core.queue
Class ChunkQueueCoordinator
java.lang.Object
com.plotsquared.core.queue.QueueCoordinator
com.plotsquared.core.queue.DelegateQueueCoordinator
com.plotsquared.core.queue.ScopedQueueCoordinator
com.plotsquared.core.queue.ChunkQueueCoordinator
Queue that is limited to a single chunk
-
Field Summary
Modifier and TypeFieldDescriptioncom.sk89q.worldedit.world.biome.BiomeType[][][]
com.sk89q.worldedit.world.block.BlockState[][][]
-
Constructor Summary
ConstructorDescriptionChunkQueueCoordinator(@NonNull com.sk89q.worldedit.math.BlockVector3 bot, @NonNull com.sk89q.worldedit.math.BlockVector3 top, boolean biomes)
-
Method Summary
Modifier and TypeMethodDescription@Nullable com.sk89q.worldedit.world.block.BlockState
getBlock(int x, int y, int z)
Get a block at the given coordinates.@NonNull com.sk89q.worldedit.world.block.BlockState[][][]
@NonNull Location
getMax()
@NonNull Location
getMin()
@Nullable com.sk89q.worldedit.world.World
getWorld()
Get the world the queue is writing toboolean
setBiome(int x, int y, int z, @NonNull com.sk89q.worldedit.world.biome.BiomeType biomeType)
Set a biome in XYZboolean
setBiome(int x, int z, @NonNull com.sk89q.worldedit.world.biome.BiomeType biomeType)
Set a biome in XZ.boolean
setBlock(int x, int y, int z, @NonNull com.sk89q.worldedit.function.pattern.Pattern pattern)
Sets the block at the coordinates provided to the given id.boolean
setBlock(int x, int y, int z, @NonNull com.sk89q.worldedit.world.block.BaseBlock id)
Sets the block at the coordinates provided to the given id.boolean
setBlock(int x, int y, int z, @NonNull com.sk89q.worldedit.world.block.BlockState id)
Sets the block at the coordinates provided to the given id.Methods inherited from class com.plotsquared.core.queue.ScopedQueueCoordinator
fillBiome, setTile
Methods inherited from class com.plotsquared.core.queue.DelegateQueueCoordinator
addProgressSubscriber, addReadChunk, addReadChunks, cancel, enqueue, getChunkConsumer, getCompleteTask, getLightingMode, getParent, getReadChunks, getRegenRegion, isSettingBiomes, isSettingTiles, isUnloadAfter, regenChunk, setChunkConsumer, setCompleteTask, setEntity, setLightingMode, setModified, setRegenRegion, setUnloadAfter, size, start
Methods inherited from class com.plotsquared.core.queue.QueueCoordinator
addEntities, getChunkObject, getForChunk, isForceSync, setBiomeCuboid, setChunkObject, setCuboid, setCuboid, setForceSync, setModified
-
Field Details
-
biomeResult
public final com.sk89q.worldedit.world.biome.BiomeType[][][] biomeResult -
result
public final com.sk89q.worldedit.world.block.BlockState[][][] result
-
-
Constructor Details
-
ChunkQueueCoordinator
public ChunkQueueCoordinator(@NonNull com.sk89q.worldedit.math.BlockVector3 bot, @NonNull com.sk89q.worldedit.math.BlockVector3 top, boolean biomes)
-
-
Method Details
-
getBlocks
public @NonNull com.sk89q.worldedit.world.block.BlockState[][][] getBlocks() -
setBiome
public boolean setBiome(int x, int z, @NonNull com.sk89q.worldedit.world.biome.BiomeType biomeType)Description copied from class:QueueCoordinator
Set a biome in XZ. This will likely set to the whole column- Overrides:
setBiome
in classScopedQueueCoordinator
- Parameters:
x
- x coordinatez
- z coordinatebiomeType
- biome- Returns:
- success or not
-
setBiome
public boolean setBiome(int x, int y, int z, @NonNull com.sk89q.worldedit.world.biome.BiomeType biomeType)Description copied from class:QueueCoordinator
Set a biome in XYZ- Overrides:
setBiome
in classScopedQueueCoordinator
- Parameters:
x
- x coordinatey
- y coordinatez
- z coordinatebiomeType
- biome- Returns:
- success or not
-
setBlock
public boolean setBlock(int x, int y, int z, @NonNull com.sk89q.worldedit.world.block.BlockState id)Description copied from class:QueueCoordinator
Sets the block at the coordinates provided to the given id.- Overrides:
setBlock
in classScopedQueueCoordinator
- Parameters:
x
- the x coordinate from from 0 to 15 inclusivey
- the y coordinate from from 0 (inclusive) - maxHeight(exclusive)z
- the z coordinate from 0 to 15 inclusiveid
- the BlockState to set the block to- Returns:
- success or not
-
setBlock
public boolean setBlock(int x, int y, int z, @NonNull com.sk89q.worldedit.function.pattern.Pattern pattern)Description copied from class:QueueCoordinator
Sets the block at the coordinates provided to the given id.- Overrides:
setBlock
in classScopedQueueCoordinator
- Parameters:
x
- the x coordinate from from 0 to 15 inclusivey
- the y coordinate from from 0 (inclusive) - maxHeight(exclusive)z
- the z coordinate from 0 to 15 inclusivepattern
- the pattern to set the block to- Returns:
- success or not
-
setBlock
public boolean setBlock(int x, int y, int z, @NonNull com.sk89q.worldedit.world.block.BaseBlock id)Description copied from class:QueueCoordinator
Sets the block at the coordinates provided to the given id.- Overrides:
setBlock
in classScopedQueueCoordinator
- Parameters:
x
- the x coordinate from from 0 to 15 inclusivey
- the y coordinate from from 0 (inclusive) - maxHeight(exclusive)z
- the z coordinate from 0 to 15 inclusiveid
- the BaseBlock to set the block to- Returns:
- success or not
-
getBlock
public @Nullable com.sk89q.worldedit.world.block.BlockState getBlock(int x, int y, int z)Description copied from class:QueueCoordinator
Get a block at the given coordinates.- Overrides:
getBlock
in classDelegateQueueCoordinator
- Parameters:
x
- block xy
- block yz
- block z- Returns:
- WorldEdit BlockState
-
getWorld
public @Nullable com.sk89q.worldedit.world.World getWorld()Description copied from class:QueueCoordinator
Get the world the queue is writing to- Overrides:
getWorld
in classDelegateQueueCoordinator
- Returns:
- world of the queue
-
getMax
- Overrides:
getMax
in classScopedQueueCoordinator
-
getMin
- Overrides:
getMin
in classScopedQueueCoordinator
-