Interface ChunkDataProvider


public interface ChunkDataProvider
This is for internal purpose only and is used to receive a ChunkSnapshot version-independent.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.block.BlockState
    getBlockState(org.bukkit.ChunkSnapshot snapshot, int x, int y, int z)
    Get the block state from a chunk snapshot at the given coordinates
    org.bukkit.ChunkSnapshot
    getSnapshot(org.bukkit.World world, int chunkX, int chunkZ)
    Returns a ChunkSnapshot of the chunk at the given coordinates.
  • Method Details

    • getSnapshot

      org.bukkit.ChunkSnapshot getSnapshot(org.bukkit.World world, int chunkX, int chunkZ)
      Returns a ChunkSnapshot of the chunk at the given coordinates.
      Parameters:
      world - The World to get the ChunkSnapshot from
      chunkX - The x-coordinate of the chunk
      chunkZ - The z-coordinate of the chunk
      Returns:
      The ChunkSnapshot of the chunk at the given coordinates
    • getBlockState

      org.bukkit.block.BlockState getBlockState(org.bukkit.ChunkSnapshot snapshot, int x, int y, int z)
      Get the block state from a chunk snapshot at the given coordinates