Package com.plotsquared.bukkit.queue
Class GenChunk
java.lang.Object
com.plotsquared.core.queue.QueueCoordinator
com.plotsquared.core.queue.DelegateQueueCoordinator
com.plotsquared.core.queue.ScopedQueueCoordinator
com.plotsquared.bukkit.queue.GenChunk
public class GenChunk
extends com.plotsquared.core.queue.ScopedQueueCoordinator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voidgetBlock(int x, int y, int z) getChunk()@NonNull com.plotsquared.core.location.LocationgetMax()@NonNull com.plotsquared.core.location.LocationgetMin()getWorld()intgetX()intgetZ()booleanbooleanbooleanSet the in the whole column of XZbooleanbooleanbooleansetBlock(int x, int y, int z, @NonNull BlockState id) voidSet the world and XZ of the chunk being represented viaChunkWrappervoidSet the chunk being representedvoidsetChunkData(@NonNull ChunkGenerator.ChunkData chunkData) Set the internal Bukkit chunk datavoidsetCuboid(@NonNull com.plotsquared.core.location.Location pos1, @NonNull com.plotsquared.core.location.Location pos2, @NonNull BlockState block) Methods inherited from class com.plotsquared.core.queue.ScopedQueueCoordinator
setBiome, 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, isForceSync, setBiomeCuboid, setChunkObject, setCuboid, setForceSync, setModified
-
Field Details
-
biomes
-
result
-
biomeGrid
-
chunk
-
world
-
chunkX
public int chunkX -
chunkZ
public int chunkZ
-
-
Constructor Details
-
GenChunk
public GenChunk()
-
-
Method Details
-
getChunkData
-
setChunkData
Set the internal Bukkit chunk data- Parameters:
chunkData- Bukkit ChunkData
-
getChunk
-
setChunk
Set the chunk being represented- Parameters:
chunk- Bukkit Chunk
-
setChunk
Set the world and XZ of the chunk being represented viaChunkWrapper- Parameters:
wrap- P2 ChunkWrapper
-
fillBiome
- Overrides:
fillBiomein classcom.plotsquared.core.queue.ScopedQueueCoordinator
-
setCuboid
public void setCuboid(@NonNull com.plotsquared.core.location.Location pos1, @NonNull com.plotsquared.core.location.Location pos2, @NonNull BlockState block) - Overrides:
setCuboidin classcom.plotsquared.core.queue.QueueCoordinator
-
setBiome
- Overrides:
setBiomein classcom.plotsquared.core.queue.ScopedQueueCoordinator
-
setBiome
Set the in the whole column of XZ- Parameters:
x- Relative x location within the chunk (0 - 15)z- Relative z location within the chunk (0 - 15)biome- Bukkit biome to set- Returns:
- if successful
-
setBiome
-
setBlock
- Overrides:
setBlockin classcom.plotsquared.core.queue.ScopedQueueCoordinator
-
setBlock
- Overrides:
setBlockin classcom.plotsquared.core.queue.ScopedQueueCoordinator
-
setBlock
- Overrides:
setBlockin classcom.plotsquared.core.queue.ScopedQueueCoordinator
-
getBlock
- Overrides:
getBlockin classcom.plotsquared.core.queue.DelegateQueueCoordinator
-
getX
public int getX() -
getZ
public int getZ() -
getWorld
- Overrides:
getWorldin classcom.plotsquared.core.queue.DelegateQueueCoordinator
-
getMax
- Overrides:
getMaxin classcom.plotsquared.core.queue.ScopedQueueCoordinator
-
getMin
- Overrides:
getMinin classcom.plotsquared.core.queue.ScopedQueueCoordinator
-
clone
-