public BiomeGenBase[] func_35142_b(BiomeGenBase[] abiomegenbase, int i, int j, int k, int l) { IntCache.func_35550_a(); if (abiomegenbase == null || abiomegenbase.Length < k * l) { abiomegenbase = new BiomeGenBase[k * l]; } int[] ai = field_34907_a.func_35018_a(i, j, k, l); for (int i1 = 0; i1 < k * l; i1++) { abiomegenbase[i1] = BiomeGenBase.biomeList[ai[i1]]; } return(abiomegenbase); }
public float[] getTemperatures(float[] af, int i, int j, int k, int l) { IntCache.func_35550_a(); if (af == null || af.Length < k * l) { af = new float[k * l]; } int[] ai = temperatureLayer.func_35018_a(i, j, k, l); for (int i1 = 0; i1 < k * l; i1++) { float f = (float)ai[i1] / 65536F; if (f > 1.0F) { f = 1.0F; } af[i1] = f; } return(af); }
public BiomeGenBase[] func_35140_a(BiomeGenBase[] abiomegenbase, int i, int j, int k, int l, bool flag) { IntCache.func_35550_a(); if (abiomegenbase == null || abiomegenbase.Length < k * l) { abiomegenbase = new BiomeGenBase[k * l]; } if (flag && k == 16 && l == 16 && (i & 0xf) == 0 && (j & 0xf) == 0) { BiomeGenBase[] abiomegenbase1 = biomeCache.func_35682_b(i, j); Array.Copy(abiomegenbase1, 0, abiomegenbase, 0, k * l); return(abiomegenbase); } int[] ai = field_34906_b.func_35018_a(i, j, k, l); for (int i1 = 0; i1 < k * l; i1++) { abiomegenbase[i1] = BiomeGenBase.biomeList[ai[i1]]; } return(abiomegenbase); }