Added chunk/block/location/world

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot
2010-12-27 02:13:03 +00:00
parent 4f56472cfd
commit 5e7a24764f
5 changed files with 318 additions and 2 deletions

View File

@@ -0,0 +1,32 @@
package org.bukkit.craftbukkit;
import org.bukkit.Chunk;
public class CraftChunk implements Chunk {
private final int x;
private final int z;
protected CraftChunk(final int x, final int z) {
this.x = x;
this.z = z;
}
/**
* Gets the X-coordinate of this chunk
*
* @return X-coordinate
*/
public int getX() {
return x;
}
/**
* Gets the Z-coordinate of this chunk
*
* @return Z-coordinate
*/
public int getZ() {
return z;
}
}