Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 54 lines 1.5 kB view raw
1package net.minecraft.server; 2 3import java.util.Arrays; 4 5public class WorldChunkManagerHell extends WorldChunkManager { 6 7 private BiomeBase e; 8 private double f; 9 private double g; 10 11 public WorldChunkManagerHell(BiomeBase biomebase, double d0, double d1) { 12 this.e = biomebase; 13 this.f = d0; 14 this.g = d1; 15 } 16 17 public BiomeBase a(ChunkCoordIntPair chunkcoordintpair) { 18 return this.e; 19 } 20 21 public BiomeBase getBiome(int i, int j) { 22 return this.e; 23 } 24 25 public BiomeBase[] getBiomeData(int i, int j, int k, int l) { 26 this.d = this.a(this.d, i, j, k, l); 27 return this.d; 28 } 29 30 public double[] a(double[] adouble, int i, int j, int k, int l) { 31 if (adouble == null || adouble.length < k * l) { 32 adouble = new double[k * l]; 33 } 34 35 Arrays.fill(adouble, 0, k * l, this.f); 36 return adouble; 37 } 38 39 public BiomeBase[] a(BiomeBase[] abiomebase, int i, int j, int k, int l) { 40 if (abiomebase == null || abiomebase.length < k * l) { 41 abiomebase = new BiomeBase[k * l]; 42 } 43 44 if (this.temperature == null || this.temperature.length < k * l) { 45 this.temperature = new double[k * l]; 46 this.rain = new double[k * l]; 47 } 48 49 Arrays.fill(abiomebase, 0, k * l, this.e); 50 Arrays.fill(this.rain, 0, k * l, this.g); 51 Arrays.fill(this.temperature, 0, k * l, this.f); 52 return abiomebase; 53 } 54}