mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
Add Chunk.getBlock(x,y,z), World.loadChunk(x,z) World.isChunkLoaded(x,z).
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
|
||||
package org.bukkit;
|
||||
|
||||
import org.bukkit.block.Block;
|
||||
|
||||
/**
|
||||
* Represents a chunk of blocks
|
||||
*/
|
||||
@@ -26,4 +28,14 @@ public interface Chunk {
|
||||
* @return Parent World
|
||||
*/
|
||||
World getWorld();
|
||||
|
||||
/**
|
||||
* Gets a block from this chunk
|
||||
*
|
||||
* @param x 0-15
|
||||
* @param y 0-127
|
||||
* @param z 0-15
|
||||
* @return the Block
|
||||
*/
|
||||
Block getBlock(int x, int y, int z);
|
||||
}
|
||||
|
Reference in New Issue
Block a user