Interface ChunkDataProvider
public interface ChunkDataProvider
This is for internal purpose only and is used to receive a ChunkSnapshot version-independent.
-
Method Summary
Modifier and TypeMethodDescriptionorg.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 coordinatesorg.bukkit.ChunkSnapshot
getSnapshot
(org.bukkit.World world, int chunkX, int chunkZ) Returns aChunkSnapshot
of the chunk at the given coordinates.
-
Method Details
-
getSnapshot
org.bukkit.ChunkSnapshot getSnapshot(org.bukkit.World world, int chunkX, int chunkZ) Returns aChunkSnapshot
of the chunk at the given coordinates.- Parameters:
world
- TheWorld
to get theChunkSnapshot
fromchunkX
- The x-coordinate of the chunkchunkZ
- 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
-