package net.minecraft.server; public class SecondaryWorldServer extends WorldServer { private final WorldServer a; // CraftBukkit start - Add WorldData, Environment and ChunkGenerator arguments public SecondaryWorldServer(MinecraftServer minecraftserver, IDataManager idatamanager, int i, WorldServer worldserver, MethodProfiler methodprofiler, WorldData worldData, org.bukkit.World.Environment env, org.bukkit.generator.ChunkGenerator gen) { super(minecraftserver, idatamanager, worldData, i, methodprofiler, env, gen); // CraftBukkit end this.a = worldserver; /* CraftBukkit start worldserver.getWorldBorder().a(new IWorldBorderListener() { public void a(WorldBorder worldborder, double d0) { SecondaryWorldServer.this.getWorldBorder().setSize(d0); } public void a(WorldBorder worldborder, double d0, double d1, long i) { SecondaryWorldServer.this.getWorldBorder().transitionSizeBetween(d0, d1, i); } public void a(WorldBorder worldborder, double d0, double d1) { SecondaryWorldServer.this.getWorldBorder().setCenter(d0, d1); } public void a(WorldBorder worldborder, int i) { SecondaryWorldServer.this.getWorldBorder().setWarningTime(i); } public void b(WorldBorder worldborder, int i) { SecondaryWorldServer.this.getWorldBorder().setWarningDistance(i); } public void b(WorldBorder worldborder, double d0) { SecondaryWorldServer.this.getWorldBorder().setDamageAmount(d0); } public void c(WorldBorder worldborder, double d0) { SecondaryWorldServer.this.getWorldBorder().setDamageBuffer(d0); } }); // CraftBukkit end */ } // protected void a() {} // CraftBukkit public World b() { this.worldMaps = this.a.X(); this.scoreboard = this.a.getScoreboard(); this.B = this.a.ak(); String s = PersistentVillage.a(this.worldProvider); PersistentVillage persistentvillage = (PersistentVillage) this.worldMaps.get(PersistentVillage.class, s); if (persistentvillage == null) { this.villages = new PersistentVillage(this); this.worldMaps.a(s, this.villages); } else { this.villages = persistentvillage; this.villages.a((World) this); } return super.b(); // CraftBukkit } public void c() { this.worldProvider.r(); } }