Add Chunk.getBlock(x,y,z), World.loadChunk(x,z) World.isChunkLoaded(x,z).
This commit is contained in:
parent
27b75075d6
commit
cbe32fca80
@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
package org.bukkit;
|
package org.bukkit;
|
||||||
|
|
||||||
|
import org.bukkit.block.Block;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a chunk of blocks
|
* Represents a chunk of blocks
|
||||||
*/
|
*/
|
||||||
@ -26,4 +28,14 @@ public interface Chunk {
|
|||||||
* @return Parent World
|
* @return Parent World
|
||||||
*/
|
*/
|
||||||
World getWorld();
|
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);
|
||||||
}
|
}
|
||||||
|
@ -81,6 +81,23 @@ public interface World {
|
|||||||
*/
|
*/
|
||||||
public void loadChunk(Chunk chunk);
|
public void loadChunk(Chunk chunk);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if the chunk at the specified coordinates is loaded
|
||||||
|
*
|
||||||
|
* @param x X-coordinate of the chunk
|
||||||
|
* @param z Z-coordinate of the chunk
|
||||||
|
* @return true if the chunk is loaded, otherwise false
|
||||||
|
*/
|
||||||
|
public boolean isChunkLoaded(int x, int z);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Loads the chunk at the specified coordinates
|
||||||
|
* @param x X-coordinate of the chunk
|
||||||
|
* @param z Z-coordinate of the chunk
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public void loadChunk(int x, int z);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Drop an item exactly at the specified location.
|
* Drop an item exactly at the specified location.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user