Implement getSpawnLocation().

This commit is contained in:
FeepingCreature 2011-01-16 07:00:01 +08:00 committed by Dinner Bone
parent bded4fb316
commit 0e821e60c9

View File

@ -50,6 +50,10 @@ public class CraftWorld implements World {
public int getHighestBlockYAt(int x, int z) {
return world.d(x, z);
}
public Location getSpawnLocation() {
return new Location(this, world.m, world.e(world.m, world.o), world.o);
}
public Chunk getChunkAt(int x, int z) {
ChunkCoordinate loc = new ChunkCoordinate(x, z);