Class FaweQueueCoordinator
java.lang.Object
com.plotsquared.core.queue.QueueCoordinator
com.fastasyncworldedit.bukkit.regions.plotsquared.FaweQueueCoordinator
public class FaweQueueCoordinator
extends com.plotsquared.core.queue.QueueCoordinator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProgressSubscriber
(com.plotsquared.core.queue.subscriber.ProgressSubscriber progressSubscriber) void
addReadChunk
(BlockVector2 chunk) void
addReadChunks
(Set<BlockVector2> readChunks) void
cancel()
boolean
enqueue()
getBlock
(int x, int y, int z) com.plotsquared.core.queue.LightingMode
getWorld()
boolean
boolean
boolean
void
regenChunk
(int x, int z) boolean
boolean
void
setBiomesEnabled
(boolean enabled) boolean
boolean
boolean
setBlock
(int x, int y, int z, BlockState id) void
setChunkConsumer
(Consumer<BlockVector2> consumer) void
setCompleteTask
(Runnable whenDone) boolean
void
setLightingMode
(com.plotsquared.core.queue.LightingMode mode) void
setModified
(long l) void
setRegenRegion
(CuboidRegion regenRegion) void
setSideEffectSet
(SideEffectSet sideEffectSet) boolean
setTile
(int x, int y, int z, CompoundTag tag) void
setUnloadAfter
(boolean unloadAfter) int
size()
void
start()
Methods inherited from class com.plotsquared.core.queue.QueueCoordinator
addEntities, getChunkObject, getForChunk, getMaxLayer, getMaxY, getMinLayer, getMinY, isForceSync, setBiomeCuboid, setChunkObject, setCuboid, setCuboid, setForceSync, setModified
-
Field Details
-
instance
-
-
Constructor Details
-
FaweQueueCoordinator
-
-
Method Details
-
size
public int size()- Specified by:
size
in classcom.plotsquared.core.queue.QueueCoordinator
-
setModified
public void setModified(long l) - Specified by:
setModified
in classcom.plotsquared.core.queue.QueueCoordinator
-
setBlock
- Specified by:
setBlock
in classcom.plotsquared.core.queue.QueueCoordinator
-
setBlock
- Overrides:
setBlock
in classcom.plotsquared.core.queue.QueueCoordinator
-
setBlock
- Specified by:
setBlock
in classcom.plotsquared.core.queue.QueueCoordinator
-
getBlock
- Specified by:
getBlock
in classcom.plotsquared.core.queue.QueueCoordinator
-
setBiome
- Specified by:
setBiome
in classcom.plotsquared.core.queue.QueueCoordinator
-
setBiome
- Specified by:
setBiome
in classcom.plotsquared.core.queue.QueueCoordinator
-
isSettingBiomes
public boolean isSettingBiomes()- Specified by:
isSettingBiomes
in classcom.plotsquared.core.queue.QueueCoordinator
-
setBiomesEnabled
public void setBiomesEnabled(boolean enabled) - Specified by:
setBiomesEnabled
in classcom.plotsquared.core.queue.QueueCoordinator
-
setEntity
- Specified by:
setEntity
in classcom.plotsquared.core.queue.QueueCoordinator
-
getReadChunks
- Specified by:
getReadChunks
in classcom.plotsquared.core.queue.QueueCoordinator
-
addReadChunks
- Specified by:
addReadChunks
in classcom.plotsquared.core.queue.QueueCoordinator
-
addReadChunk
- Specified by:
addReadChunk
in classcom.plotsquared.core.queue.QueueCoordinator
-
isUnloadAfter
public boolean isUnloadAfter()- Specified by:
isUnloadAfter
in classcom.plotsquared.core.queue.QueueCoordinator
-
setUnloadAfter
public void setUnloadAfter(boolean unloadAfter) - Specified by:
setUnloadAfter
in classcom.plotsquared.core.queue.QueueCoordinator
-
getRegenRegion
- Specified by:
getRegenRegion
in classcom.plotsquared.core.queue.QueueCoordinator
-
setRegenRegion
- Specified by:
setRegenRegion
in classcom.plotsquared.core.queue.QueueCoordinator
-
enqueue
public boolean enqueue()- Overrides:
enqueue
in classcom.plotsquared.core.queue.QueueCoordinator
-
start
public void start()- Specified by:
start
in classcom.plotsquared.core.queue.QueueCoordinator
-
cancel
public void cancel()- Specified by:
cancel
in classcom.plotsquared.core.queue.QueueCoordinator
-
getCompleteTask
- Specified by:
getCompleteTask
in classcom.plotsquared.core.queue.QueueCoordinator
-
setCompleteTask
- Specified by:
setCompleteTask
in classcom.plotsquared.core.queue.QueueCoordinator
-
getChunkConsumer
- Specified by:
getChunkConsumer
in classcom.plotsquared.core.queue.QueueCoordinator
-
setChunkConsumer
- Specified by:
setChunkConsumer
in classcom.plotsquared.core.queue.QueueCoordinator
-
addProgressSubscriber
public void addProgressSubscriber(@Nonnull com.plotsquared.core.queue.subscriber.ProgressSubscriber progressSubscriber) - Specified by:
addProgressSubscriber
in classcom.plotsquared.core.queue.QueueCoordinator
-
getLightingMode
@Nonnull public com.plotsquared.core.queue.LightingMode getLightingMode()- Specified by:
getLightingMode
in classcom.plotsquared.core.queue.QueueCoordinator
-
setLightingMode
public void setLightingMode(@Nullable com.plotsquared.core.queue.LightingMode mode) - Specified by:
setLightingMode
in classcom.plotsquared.core.queue.QueueCoordinator
-
getSideEffectSet
- Specified by:
getSideEffectSet
in classcom.plotsquared.core.queue.QueueCoordinator
-
setSideEffectSet
- Specified by:
setSideEffectSet
in classcom.plotsquared.core.queue.QueueCoordinator
-
regenChunk
public void regenChunk(int x, int z) - Specified by:
regenChunk
in classcom.plotsquared.core.queue.QueueCoordinator
-
getWorld
- Specified by:
getWorld
in classcom.plotsquared.core.queue.QueueCoordinator
-
setTile
- Specified by:
setTile
in classcom.plotsquared.core.queue.QueueCoordinator
-
isSettingTiles
public boolean isSettingTiles()- Specified by:
isSettingTiles
in classcom.plotsquared.core.queue.QueueCoordinator
-