Paper/src/main/java/net/minecraft/server/WorldManager.java

41 lines
1.4 KiB
Java
Raw Normal View History

package net.minecraft.server;
public class WorldManager implements IWorldAccess {
private MinecraftServer server;
2011-06-12 00:02:58 +02:00
public WorldServer world; // CraftBukkit - private -> public
2011-05-26 14:48:22 +02:00
public WorldManager(MinecraftServer minecraftserver, WorldServer worldserver) {
this.server = minecraftserver;
2011-05-26 14:48:22 +02:00
this.world = worldserver;
}
public void a(String s, double d0, double d1, double d2, double d3, double d4, double d5) {}
public void a(Entity entity) {
this.server.getTracker(this.world.dimension).track(entity); // CraftBukkit
}
public void b(Entity entity) {
this.server.getTracker(this.world.dimension).untrackEntity(entity); // CraftBukkit
}
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
}
public void a(String s, int i, int j, int k) {}
public void a(int i, int j, int k, TileEntity tileentity) {
this.server.serverConfigurationManager.a(i, j, k, tileentity);
}
2011-05-26 14:48:22 +02:00
public void a(EntityHuman entityhuman, int i, int j, int k, int l, int i1) {
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
}
}