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)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fillBiome(com.sk89q.worldedit.world.biome.BiomeType biome)
@NonNull Location
getMax()
@NonNull Location
getMin()
boolean
setBiome(int x, int y, int z, @NonNull com.sk89q.worldedit.world.biome.BiomeType biome)
Set a biome in XYZboolean
setBiome(int x, int z, @NonNull com.sk89q.worldedit.world.biome.BiomeType biome)
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.boolean
setTile(int x, int y, int z, @NonNull com.sk89q.jnbt.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, start
Methods inherited from class com.plotsquared.core.queue.QueueCoordinator
addEntities, getChunkObject, getForChunk, isForceSync, setBiomeCuboid, setChunkObject, setCuboid, setCuboid, setForceSync, setModified
-
Constructor Details
-
ScopedQueueCoordinator
public ScopedQueueCoordinator(@Nullable QueueCoordinator parent, @NonNull Location min, @NonNull Location max)
-
-
Method Details
-
setBiome
public boolean setBiome(int x, int z, @NonNull com.sk89q.worldedit.world.biome.BiomeType biome)Description copied from class:QueueCoordinator
Set a biome in XZ. This will likely set to the whole column- Overrides:
setBiome
in classDelegateQueueCoordinator
- Parameters:
x
- x coordinatez
- z coordinatebiome
- biome- Returns:
- success or not
-
setBiome
public boolean setBiome(int x, int y, int z, @NonNull com.sk89q.worldedit.world.biome.BiomeType biome)Description copied from class:QueueCoordinator
Set a biome in XYZ- Overrides:
setBiome
in classDelegateQueueCoordinator
- Parameters:
x
- x coordinatey
- y coordinatez
- z coordinatebiome
- biome- Returns:
- success or not
-
fillBiome
public void fillBiome(com.sk89q.worldedit.world.biome.BiomeType biome) -
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 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
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 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
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 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
public boolean setTile(int x, int y, int z, @NonNull com.sk89q.jnbt.CompoundTag tag)Description copied from class:QueueCoordinator
Sets a tile entity at the coordinates provided to the given CompoundTag- Overrides:
setTile
in 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
-