Package com.plotsquared.core.queue
Class ScopedQueueCoordinator
java.lang.Object
com.plotsquared.core.queue.QueueCoordinator
com.plotsquared.core.queue.DelegateQueueCoordinator
com.plotsquared.core.queue.ScopedQueueCoordinator
- Direct Known Subclasses:
ChunkQueueCoordinator
Queue that only sets blocks with a designated area
-
Constructor Summary
ConstructorsConstructorDescriptionScopedQueueCoordinator(@Nullable QueueCoordinator parent, @NonNull Location min, @NonNull Location max) Create a new ScopedQueueCoordinator instance that delegates to a given QueueCoordinator. -
Method Summary
Modifier and TypeMethodDescriptionvoidgetMax()getMin()booleanSet 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.booleansetTile(int x, int y, int z, @NonNull CompoundTag tag) Sets a tile entity at the coordinates provided to the given CompoundTagMethods inherited from class com.plotsquared.core.queue.DelegateQueueCoordinator
addProgressSubscriber, addReadChunk, addReadChunks, cancel, enqueue, getBlock, getChunkConsumer, getCompleteTask, getLightingMode, getParent, getReadChunks, getRegenRegion, getWorld, 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
-
Constructor Details
-
Method Details
-
setBiome
Description copied from class:QueueCoordinatorSet a biome in XZ. This will likely set to the whole column- Overrides:
setBiomein classDelegateQueueCoordinator- Parameters:
x- x coordinatez- z coordinatebiome- biome- Returns:
- success or not
-
setBiome
Description copied from class:QueueCoordinatorSet a biome in XYZ- Overrides:
setBiomein classDelegateQueueCoordinator- Parameters:
x- x coordinatey- y coordinatez- z coordinatebiome- biome- Returns:
- success or not
-
fillBiome
-
setBlock
Description copied from class:QueueCoordinatorSets the block at the coordinates provided to the given id.- Overrides:
setBlockin classDelegateQueueCoordinator- 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
-
setBlock
Description copied from class:QueueCoordinatorSets the block at the coordinates provided to the given id.- Overrides:
setBlockin classDelegateQueueCoordinator- 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 classDelegateQueueCoordinator- 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
-
setTile
Description copied from class:QueueCoordinatorSets a tile entity at the coordinates provided to the given CompoundTag- Overrides:
setTilein classDelegateQueueCoordinator- 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 inclusivetag- the CompoundTag to set the tile to- Returns:
- success or not
-
getMin
-
getMax
-