java.lang.Object
com.olziedev.playerauctions.api.scheduler.wrapped.chunk.BukkitChunk

public class BukkitChunk extends Object
Represents a chunk in the world.
  • Constructor Details

    • BukkitChunk

      public BukkitChunk(Chunk chunk)
      Parameters:
      chunk - The chunk to wrap.
    • BukkitChunk

      public BukkitChunk(Location location)
    • BukkitChunk

      public BukkitChunk(World world, int x, int z)
      Parameters:
      x - The x coordinate of the chunk.
      z - The z coordinate of the chunk.
  • Method Details

    • getBlock

      public Block getBlock(int x, int y, int z)
      Gets the block at the specified coordinates.
      Parameters:
      x - The x coordinate of the block.
      y - The y coordinate of the block.
      z - The z coordinate of the block.
      Returns:
      The block at the specified coordinates.
    • getWorld

      public World getWorld()
      Returns:
      The world that the chunk is in.
    • getX

      public int getX()
      Returns:
      The x coordinate of the chunk.
    • getZ

      public int getZ()
      Returns:
      The z coordinate of the chunk.