geforkt von Mirrors/Paper
c6821f93c4
By: EvilSeph <evilseph@unaligned.org>
53 Zeilen
929 B
Java
53 Zeilen
929 B
Java
package org.bukkit;
|
|
|
|
import org.bukkit.block.Block;
|
|
import org.bukkit.block.BlockState;
|
|
import org.bukkit.entity.Entity;
|
|
|
|
/**
|
|
* 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();
|
|
|
|
/**
|
|
* Gets the world containing this 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);
|
|
|
|
/**
|
|
* Capture thread-safe read-only snapshot of chunk data
|
|
* @return ChunkSnapshot
|
|
*/
|
|
ChunkSnapshot getChunkSnapshot();
|
|
|
|
Entity[] getEntities();
|
|
|
|
BlockState[] getTileEntities();
|
|
}
|