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 Details

  • Constructor Details

    • GenChunk

      public GenChunk()
  • Method Details

    • getChunkData

      public @Nullable ChunkGenerator.ChunkData getChunkData()
    • setChunkData

      public void setChunkData(@NonNull ChunkGenerator.ChunkData chunkData)
      Set the internal Bukkit chunk data
      Parameters:
      chunkData - Bukkit ChunkData
    • getChunk

      public @NonNull Chunk getChunk()
    • setChunk

      public void setChunk(@NonNull Chunk chunk)
      Set the chunk being represented
      Parameters:
      chunk - Bukkit Chunk
    • setChunk

      public void setChunk(@NonNull com.plotsquared.core.location.ChunkWrapper wrap)
      Set the world and XZ of the chunk being represented via ChunkWrapper
      Parameters:
      wrap - P2 ChunkWrapper
    • fillBiome

      public void fillBiome(@NonNull BiomeType biomeType)
      Overrides:
      fillBiome in class com.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 class com.plotsquared.core.queue.QueueCoordinator
    • setBiome

      public boolean setBiome(int x, int z, @NonNull BiomeType biomeType)
      Overrides:
      setBiome in class com.plotsquared.core.queue.ScopedQueueCoordinator
    • setBiome

      public boolean setBiome(int x, int z, @NonNull Biome biome)
      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

      public boolean setBiome(int x, int y, int z, @NonNull Biome biome)
    • setBlock

      public boolean setBlock(int x, int y, int z, @NonNull Pattern pattern)
      Overrides:
      setBlock in class com.plotsquared.core.queue.ScopedQueueCoordinator
    • setBlock

      public boolean setBlock(int x, int y, int z, @NonNull BlockState id)
      Overrides:
      setBlock in class com.plotsquared.core.queue.ScopedQueueCoordinator
    • setBlock

      public boolean setBlock(int x, int y, int z, @NonNull BaseBlock id)
      Overrides:
      setBlock in class com.plotsquared.core.queue.ScopedQueueCoordinator
    • getBlock

      public @Nullable BlockState getBlock(int x, int y, int z)
      Overrides:
      getBlock in class com.plotsquared.core.queue.DelegateQueueCoordinator
    • getX

      public int getX()
    • getZ

      public int getZ()
    • getWorld

      public @NonNull World getWorld()
      Overrides:
      getWorld in class com.plotsquared.core.queue.DelegateQueueCoordinator
    • getMax

      public @NonNull com.plotsquared.core.location.Location getMax()
      Overrides:
      getMax in class com.plotsquared.core.queue.ScopedQueueCoordinator
    • getMin

      public @NonNull com.plotsquared.core.location.Location getMin()
      Overrides:
      getMin in class com.plotsquared.core.queue.ScopedQueueCoordinator
    • clone

      public @NonNull GenChunk clone()
      Overrides:
      clone in class Object