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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChunkQueueCoordinator(@NonNull World weWorld, @NonNull BlockVector3 bot, @NonNull BlockVector3 top, boolean biomes) -
Method Summary
Modifier and TypeMethodDescriptiongetBlock(int x, int y, int z) Get a block at the given coordinates.@NonNull BlockState[][][]getMax()getMin()getWorld()Get the world the queue is writing tobooleanSet a biome in XYZbooleanSet a biome in XZ.booleanSets the block at the coordinates provided to the given id.booleanSets the block at the coordinates provided to the given id.booleansetBlock(int x, int y, int z, @NonNull BlockState id) Sets the block at the coordinates provided to the given id.Methods inherited from class com.plotsquared.core.queue.ScopedQueueCoordinator
fillBiome, setTileMethods 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, startMethods inherited from class com.plotsquared.core.queue.QueueCoordinator
addEntities, getChunkObject, getForChunk, getForChunk, getMaxLayer, getMaxY, getMinLayer, getMinY, isForceSync, setBiomeCuboid, setChunkObject, setCuboid, setCuboid, setForceSync, setModified
-
Field Details
-
biomeResult
-
result
-
-
Constructor Details
-
ChunkQueueCoordinator
public ChunkQueueCoordinator(@NonNull World weWorld, @NonNull BlockVector3 bot, @NonNull BlockVector3 top, boolean biomes)
-
-
Method Details
-
getBlocks
-
setBiome
Description copied from class:QueueCoordinatorSet a biome in XZ. This will likely set to the whole column- Overrides:
setBiomein classScopedQueueCoordinator- Parameters:
x- x coordinatez- z coordinatebiomeType- biome- Returns:
- success or not
-
setBiome
Description copied from class:QueueCoordinatorSet a biome in XYZ- Overrides:
setBiomein classScopedQueueCoordinator- Parameters:
x- x coordinatey- y coordinatez- z coordinatebiomeType- biome- Returns:
- success or not
-
setBlock
Description copied from class:QueueCoordinatorSets the block at the coordinates provided to the given id.- Overrides:
setBlockin 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
Description copied from class:QueueCoordinatorSets the block at the coordinates provided to the given id.- Overrides:
setBlockin 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
Description copied from class:QueueCoordinatorSets the block at the coordinates provided to the given id.- Overrides:
setBlockin 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
Description copied from class:QueueCoordinatorGet a block at the given coordinates.- Overrides:
getBlockin classDelegateQueueCoordinator- Parameters:
x- block xy- block yz- block z- Returns:
- WorldEdit BlockState
-
getWorld
Description copied from class:QueueCoordinatorGet the world the queue is writing to- Overrides:
getWorldin classDelegateQueueCoordinator- Returns:
- world of the queue
-
getMax
- Overrides:
getMaxin classScopedQueueCoordinator
-
getMin
- Overrides:
getMinin classScopedQueueCoordinator
-