mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
Implemented 1.6!
This commit is contained in:
@@ -3,22 +3,21 @@ package net.minecraft.server;
|
||||
public class WorldManager implements IWorldAccess {
|
||||
|
||||
private MinecraftServer server;
|
||||
public WorldServer world; // CraftBukkit
|
||||
public WorldServer world; // CraftBukkit private -> public
|
||||
|
||||
// CraftBukkit - changed signature
|
||||
public WorldManager(MinecraftServer minecraftserver, WorldServer world) {
|
||||
public WorldManager(MinecraftServer minecraftserver, WorldServer worldserver) {
|
||||
this.server = minecraftserver;
|
||||
this.world = world; // CraftBukkit
|
||||
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.tracker.a(entity);
|
||||
this.server.b(this.world.worldProvider.dimension).a(entity);
|
||||
}
|
||||
|
||||
public void b(Entity entity) {
|
||||
this.server.tracker.untrackEntity(entity);
|
||||
this.server.b(this.world.worldProvider.dimension).untrackEntity(entity);
|
||||
}
|
||||
|
||||
public void a(String s, double d0, double d1, double d2, float f, float f1) {}
|
||||
@@ -28,8 +27,7 @@ public class WorldManager implements IWorldAccess {
|
||||
public void a() {}
|
||||
|
||||
public void a(int i, int j, int k) {
|
||||
// CraftBukkit - add world argument
|
||||
this.server.serverConfigurationManager.flagDirty(i, j, k, world);
|
||||
this.server.serverConfigurationManager.flagDirty(i, j, k, this.world.worldProvider.dimension);
|
||||
}
|
||||
|
||||
public void a(String s, int i, int j, int k) {}
|
||||
@@ -37,4 +35,8 @@ public class WorldManager implements IWorldAccess {
|
||||
public void a(int i, int j, int k, TileEntity tileentity) {
|
||||
this.server.serverConfigurationManager.a(i, j, k, tileentity);
|
||||
}
|
||||
|
||||
public void a(EntityHuman entityhuman, int i, int j, int k, int l, int i1) {
|
||||
this.server.serverConfigurationManager.a(entityhuman, (double) j, (double) k, (double) l, 64.0D, this.world.worldProvider.dimension, new Packet61(i, j, k, l, i1));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user