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
FieldsModifier and TypeFieldDescriptionfinal com.fastasyncworldedit.core.queue.IQueueExtent<com.fastasyncworldedit.core.queue.IQueueChunk> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProgressSubscriber(com.plotsquared.core.queue.subscriber.ProgressSubscriber progressSubscriber) voidaddReadChunk(com.sk89q.worldedit.math.BlockVector2 chunk) voidaddReadChunks(Set<com.sk89q.worldedit.math.BlockVector2> readChunks) voidcancel()booleanenqueue()com.sk89q.worldedit.world.block.BlockStategetBlock(int x, int y, int z) Consumer<com.sk89q.worldedit.math.BlockVector2>com.plotsquared.core.queue.LightingModeList<com.sk89q.worldedit.math.BlockVector2>com.sk89q.worldedit.regions.CuboidRegioncom.sk89q.worldedit.world.WorldgetWorld()booleanbooleanbooleanvoidregenChunk(int x, int z) booleansetBiome(int x, int y, int z, com.sk89q.worldedit.world.biome.BiomeType biome) booleansetBiome(int x, int z, com.sk89q.worldedit.world.biome.BiomeType biomeType) booleansetBlock(int x, int y, int z, com.sk89q.worldedit.function.pattern.Pattern pattern) booleansetBlock(int x, int y, int z, com.sk89q.worldedit.world.block.BaseBlock id) booleansetBlock(int x, int y, int z, com.sk89q.worldedit.world.block.BlockState id) voidsetChunkConsumer(Consumer<com.sk89q.worldedit.math.BlockVector2> consumer) voidsetCompleteTask(Runnable whenDone) booleansetEntity(com.sk89q.worldedit.entity.Entity entity) voidsetLightingMode(com.plotsquared.core.queue.LightingMode mode) voidsetModified(long l) voidsetRegenRegion(com.sk89q.worldedit.regions.CuboidRegion regenRegion) booleansetTile(int x, int y, int z, com.sk89q.jnbt.CompoundTag tag) voidsetUnloadAfter(boolean unloadAfter) intsize()voidstart()Methods 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
-
instance
public final com.fastasyncworldedit.core.queue.IQueueExtent<com.fastasyncworldedit.core.queue.IQueueChunk> instance
-
-
Constructor Details
-
FaweQueueCoordinator
public FaweQueueCoordinator(com.sk89q.worldedit.world.World world)
-
-
Method Details
-
size
public int size()- Specified by:
sizein classcom.plotsquared.core.queue.QueueCoordinator
-
setModified
public void setModified(long l) - Specified by:
setModifiedin classcom.plotsquared.core.queue.QueueCoordinator
-
setBlock
public boolean setBlock(int x, int y, int z, com.sk89q.worldedit.world.block.BlockState id) - Specified by:
setBlockin classcom.plotsquared.core.queue.QueueCoordinator
-
setBlock
public boolean setBlock(int x, int y, int z, com.sk89q.worldedit.function.pattern.Pattern pattern) - Overrides:
setBlockin classcom.plotsquared.core.queue.QueueCoordinator
-
setBlock
public boolean setBlock(int x, int y, int z, com.sk89q.worldedit.world.block.BaseBlock id) - Specified by:
setBlockin classcom.plotsquared.core.queue.QueueCoordinator
-
getBlock
public com.sk89q.worldedit.world.block.BlockState getBlock(int x, int y, int z) - Specified by:
getBlockin classcom.plotsquared.core.queue.QueueCoordinator
-
setBiome
public boolean setBiome(int x, int z, com.sk89q.worldedit.world.biome.BiomeType biomeType) - Specified by:
setBiomein classcom.plotsquared.core.queue.QueueCoordinator
-
setBiome
public boolean setBiome(int x, int y, int z, @Nonnull com.sk89q.worldedit.world.biome.BiomeType biome) - Specified by:
setBiomein classcom.plotsquared.core.queue.QueueCoordinator
-
isSettingBiomes
public boolean isSettingBiomes()- Specified by:
isSettingBiomesin classcom.plotsquared.core.queue.QueueCoordinator
-
setEntity
public boolean setEntity(@Nonnull com.sk89q.worldedit.entity.Entity entity) - Specified by:
setEntityin classcom.plotsquared.core.queue.QueueCoordinator
-
getReadChunks
- Specified by:
getReadChunksin classcom.plotsquared.core.queue.QueueCoordinator
-
addReadChunks
- Specified by:
addReadChunksin classcom.plotsquared.core.queue.QueueCoordinator
-
addReadChunk
public void addReadChunk(@Nonnull com.sk89q.worldedit.math.BlockVector2 chunk) - Specified by:
addReadChunkin classcom.plotsquared.core.queue.QueueCoordinator
-
isUnloadAfter
public boolean isUnloadAfter()- Specified by:
isUnloadAfterin classcom.plotsquared.core.queue.QueueCoordinator
-
setUnloadAfter
public void setUnloadAfter(boolean unloadAfter) - Specified by:
setUnloadAfterin classcom.plotsquared.core.queue.QueueCoordinator
-
getRegenRegion
@Nullable public com.sk89q.worldedit.regions.CuboidRegion getRegenRegion()- Specified by:
getRegenRegionin classcom.plotsquared.core.queue.QueueCoordinator
-
setRegenRegion
public void setRegenRegion(@Nonnull com.sk89q.worldedit.regions.CuboidRegion regenRegion) - Specified by:
setRegenRegionin classcom.plotsquared.core.queue.QueueCoordinator
-
enqueue
public boolean enqueue()- Overrides:
enqueuein classcom.plotsquared.core.queue.QueueCoordinator
-
start
public void start()- Specified by:
startin classcom.plotsquared.core.queue.QueueCoordinator
-
cancel
public void cancel()- Specified by:
cancelin classcom.plotsquared.core.queue.QueueCoordinator
-
getCompleteTask
- Specified by:
getCompleteTaskin classcom.plotsquared.core.queue.QueueCoordinator
-
setCompleteTask
- Specified by:
setCompleteTaskin classcom.plotsquared.core.queue.QueueCoordinator
-
getChunkConsumer
- Specified by:
getChunkConsumerin classcom.plotsquared.core.queue.QueueCoordinator
-
setChunkConsumer
- Specified by:
setChunkConsumerin classcom.plotsquared.core.queue.QueueCoordinator
-
addProgressSubscriber
public void addProgressSubscriber(@Nonnull com.plotsquared.core.queue.subscriber.ProgressSubscriber progressSubscriber) - Specified by:
addProgressSubscriberin classcom.plotsquared.core.queue.QueueCoordinator
-
getLightingMode
@Nonnull public com.plotsquared.core.queue.LightingMode getLightingMode()- Specified by:
getLightingModein classcom.plotsquared.core.queue.QueueCoordinator
-
setLightingMode
public void setLightingMode(@Nullable com.plotsquared.core.queue.LightingMode mode) - Specified by:
setLightingModein classcom.plotsquared.core.queue.QueueCoordinator
-
regenChunk
public void regenChunk(int x, int z) - Specified by:
regenChunkin classcom.plotsquared.core.queue.QueueCoordinator
-
getWorld
@Nullable public com.sk89q.worldedit.world.World getWorld()- Specified by:
getWorldin classcom.plotsquared.core.queue.QueueCoordinator
-
setTile
public boolean setTile(int x, int y, int z, com.sk89q.jnbt.CompoundTag tag) - Specified by:
setTilein classcom.plotsquared.core.queue.QueueCoordinator
-
isSettingTiles
public boolean isSettingTiles()- Specified by:
isSettingTilesin classcom.plotsquared.core.queue.QueueCoordinator
-