2011-02-05 19:15:04 +01:00
|
|
|
package net.minecraft.server;
|
|
|
|
|
|
|
|
public class WorldManager implements IWorldAccess {
|
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
private MinecraftServer server;
|
2011-06-12 00:02:58 +02:00
|
|
|
public WorldServer world; // CraftBukkit - private -> public
|
2011-02-05 19:15:04 +01:00
|
|
|
|
2011-05-26 14:48:22 +02:00
|
|
|
public WorldManager(MinecraftServer minecraftserver, WorldServer worldserver) {
|
2011-04-20 19:05:14 +02:00
|
|
|
this.server = minecraftserver;
|
2011-05-26 14:48:22 +02:00
|
|
|
this.world = worldserver;
|
2011-02-05 19:15:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public void a(String s, double d0, double d1, double d2, double d3, double d4, double d5) {}
|
|
|
|
|
|
|
|
public void a(Entity entity) {
|
2011-06-27 00:25:01 +02:00
|
|
|
this.server.getTracker(this.world.dimension).track(entity); // CraftBukkit
|
2011-02-05 19:15:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public void b(Entity entity) {
|
2011-06-27 00:25:01 +02:00
|
|
|
this.server.getTracker(this.world.dimension).untrackEntity(entity); // CraftBukkit
|
2011-02-05 19:15:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public void a(String s, double d0, double d1, double d2, float f, float f1) {}
|
|
|
|
|
|
|
|
public void a(int i, int j, int k, int l, int i1, int j1) {}
|
|
|
|
|
|
|
|
public void a(int i, int j, int k) {
|
2011-05-31 19:04:52 +02:00
|
|
|
this.server.serverConfigurationManager.flagDirty(i, j, k, this.world.dimension); // CraftBukkit
|
2011-02-05 19:15:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public void a(String s, int i, int j, int k) {}
|
|
|
|
|
|
|
|
public void a(int i, int j, int k, TileEntity tileentity) {
|
2011-04-20 19:05:14 +02:00
|
|
|
this.server.serverConfigurationManager.a(i, j, k, tileentity);
|
2011-02-05 19:15:04 +01:00
|
|
|
}
|
2011-05-26 14:48:22 +02:00
|
|
|
|
|
|
|
public void a(EntityHuman entityhuman, int i, int j, int k, int l, int i1) {
|
2011-06-27 00:25:01 +02:00
|
|
|
this.server.serverConfigurationManager.sendPacketNearby(entityhuman, (double) j, (double) k, (double) l, 64.0D, this.world.dimension, new Packet61(i, j, k, l, i1)); // CraftBukkit
|
2011-05-26 14:48:22 +02:00
|
|
|
}
|
2011-02-05 19:15:04 +01:00
|
|
|
}
|