Class ChunkQueueCoordinator


public class ChunkQueueCoordinator extends ScopedQueueCoordinator
Queue that is limited to a single chunk
  • Field Details

    • biomeResult

      public final com.sk89q.worldedit.world.biome.BiomeType[][][] biomeResult
    • result

      public final com.sk89q.worldedit.world.block.BlockState[][][] result
  • Constructor Details

    • ChunkQueueCoordinator

      public ChunkQueueCoordinator(@NonNull com.sk89q.worldedit.math.BlockVector3 bot, @NonNull com.sk89q.worldedit.math.BlockVector3 top, boolean biomes)
  • Method Details

    • getBlocks

      public @NonNull com.sk89q.worldedit.world.block.BlockState[][][] getBlocks()
    • setBiome

      public boolean setBiome(int x, int z, @NonNull com.sk89q.worldedit.world.biome.BiomeType biomeType)
      Description copied from class: QueueCoordinator
      Set a biome in XZ. This will likely set to the whole column
      Overrides:
      setBiome in class ScopedQueueCoordinator
      Parameters:
      x - x coordinate
      z - z coordinate
      biomeType - biome
      Returns:
      success or not
    • setBiome

      public boolean setBiome(int x, int y, int z, @NonNull com.sk89q.worldedit.world.biome.BiomeType biomeType)
      Description copied from class: QueueCoordinator
      Set a biome in XYZ
      Overrides:
      setBiome in class ScopedQueueCoordinator
      Parameters:
      x - x coordinate
      y - y coordinate
      z - z coordinate
      biomeType - biome
      Returns:
      success or not
    • setBlock

      public boolean setBlock(int x, int y, int z, @NonNull com.sk89q.worldedit.world.block.BlockState id)
      Description copied from class: QueueCoordinator
      Sets the block at the coordinates provided to the given id.
      Overrides:
      setBlock in class ScopedQueueCoordinator
      Parameters:
      x - the x coordinate from from 0 to 15 inclusive
      y - the y coordinate from from 0 (inclusive) - maxHeight(exclusive)
      z - the z coordinate from 0 to 15 inclusive
      id - the BlockState to set the block to
      Returns:
      success or not
    • setBlock

      public boolean setBlock(int x, int y, int z, @NonNull com.sk89q.worldedit.function.pattern.Pattern pattern)
      Description copied from class: QueueCoordinator
      Sets the block at the coordinates provided to the given id.
      Overrides:
      setBlock in class ScopedQueueCoordinator
      Parameters:
      x - the x coordinate from from 0 to 15 inclusive
      y - the y coordinate from from 0 (inclusive) - maxHeight(exclusive)
      z - the z coordinate from 0 to 15 inclusive
      pattern - the pattern to set the block to
      Returns:
      success or not
    • setBlock

      public boolean setBlock(int x, int y, int z, @NonNull com.sk89q.worldedit.world.block.BaseBlock id)
      Description copied from class: QueueCoordinator
      Sets the block at the coordinates provided to the given id.
      Overrides:
      setBlock in class ScopedQueueCoordinator
      Parameters:
      x - the x coordinate from from 0 to 15 inclusive
      y - the y coordinate from from 0 (inclusive) - maxHeight(exclusive)
      z - the z coordinate from 0 to 15 inclusive
      id - the BaseBlock to set the block to
      Returns:
      success or not
    • getBlock

      public @Nullable com.sk89q.worldedit.world.block.BlockState getBlock(int x, int y, int z)
      Description copied from class: QueueCoordinator
      Get a block at the given coordinates.
      Overrides:
      getBlock in class DelegateQueueCoordinator
      Parameters:
      x - block x
      y - block y
      z - block z
      Returns:
      WorldEdit BlockState
    • getWorld

      public @Nullable com.sk89q.worldedit.world.World getWorld()
      Description copied from class: QueueCoordinator
      Get the world the queue is writing to
      Overrides:
      getWorld in class DelegateQueueCoordinator
      Returns:
      world of the queue
    • getMax

      public @NonNull Location getMax()
      Overrides:
      getMax in class ScopedQueueCoordinator
    • getMin

      public @NonNull Location getMin()
      Overrides:
      getMin in class ScopedQueueCoordinator