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()
void
getBlock
(int x, int y, int z) getChunk()
@NonNull com.plotsquared.core.location.Location
getMax()
@NonNull com.plotsquared.core.location.Location
getMin()
getWorld()
int
getX()
int
getZ()
boolean
boolean
boolean
Set the in the whole column of XZboolean
boolean
boolean
setBlock
(int x, int y, int z, @NonNull BlockState id) void
Set the world and XZ of the chunk being represented viaChunkWrapper
void
Set the chunk being representedvoid
setChunkData
(@NonNull ChunkGenerator.ChunkData chunkData) Set the internal Bukkit chunk datavoid
setCuboid
(@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, setTile
Methods 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, start
Methods 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:
fillBiome
in 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:
setCuboid
in classcom.plotsquared.core.queue.QueueCoordinator
-
setBiome
- Overrides:
setBiome
in 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:
setBlock
in classcom.plotsquared.core.queue.ScopedQueueCoordinator
-
setBlock
- Overrides:
setBlock
in classcom.plotsquared.core.queue.ScopedQueueCoordinator
-
setBlock
- Overrides:
setBlock
in classcom.plotsquared.core.queue.ScopedQueueCoordinator
-
getBlock
- Overrides:
getBlock
in classcom.plotsquared.core.queue.DelegateQueueCoordinator
-
getX
public int getX() -
getZ
public int getZ() -
getWorld
- Overrides:
getWorld
in classcom.plotsquared.core.queue.DelegateQueueCoordinator
-
getMax
- Overrides:
getMax
in classcom.plotsquared.core.queue.ScopedQueueCoordinator
-
getMin
- Overrides:
getMin
in classcom.plotsquared.core.queue.ScopedQueueCoordinator
-
clone
-