Implement getSpawnLocation().

By: FeepingCreature <default_357-line@yahoo.de>
This commit is contained in:
CraftBukkit/Spigot 2011-01-16 07:00:01 +08:00
parent faf7e54b22
commit fa61eef933

View File

@ -51,6 +51,10 @@ public class CraftWorld implements World {
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);
CraftChunk chunk = chunkCache.get(loc);