2010-12-26 23:22:15 +00:00
|
|
|
|
|
|
|
package org.bukkit;
|
|
|
|
|
2011-02-02 00:01:33 +01:00
|
|
|
import org.bukkit.block.Block;
|
|
|
|
|
2010-12-26 23:22:15 +00:00
|
|
|
/**
|
|
|
|
* Represents a chunk of blocks
|
|
|
|
*/
|
|
|
|
public interface Chunk {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the X-coordinate of this chunk
|
|
|
|
*
|
|
|
|
* @return X-coordinate
|
|
|
|
*/
|
|
|
|
int getX();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the Z-coordinate of this chunk
|
|
|
|
*
|
|
|
|
* @return Z-coordinate
|
|
|
|
*/
|
|
|
|
int getZ();
|
|
|
|
|
2011-01-04 14:08:29 +00:00
|
|
|
/**
|
|
|
|
* Gets the world containing this chunk
|
|
|
|
*
|
|
|
|
* @return Parent World
|
|
|
|
*/
|
|
|
|
World getWorld();
|
2011-02-02 00:01:33 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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);
|
2010-12-26 23:22:15 +00:00
|
|
|
}
|