BiomesOPlenty/src/minecraft/biomesoplenty/world/layer/BiomeLayerShore.java

35 lines
766 B
Java
Raw Normal View History

package biomesoplenty.world.layer;
import net.minecraft.world.gen.layer.IntCache;
public class BiomeLayerShore extends BiomeLayer
{
2013-05-31 10:34:02 +00:00
public BiomeLayerShore(long par1, BiomeLayer par3GenLayer)
{
super(par1);
parent = par3GenLayer;
}
2013-05-31 10:34:02 +00:00
@Override
public int[] getInts(int par1, int par2, int par3, int par4)
{
int[] var5 = parent.getInts(par1 - 1, par2 - 1, par3 + 2, par4 + 2);
int[] var6 = IntCache.getIntCache(par3 * par4);
2013-05-31 10:34:02 +00:00
for (int var7 = 0; var7 < par4; ++var7)
{
for (int var8 = 0; var8 < par3; ++var8)
{
this.initChunkSeed(var8 + par1, var7 + par2);
int var9 = var5[var8 + 1 + (var7 + 1) * (par3 + 2)];
int var10;
int var11;
int var12;
int var13;
var6[var8 + var7 * par3] = var9;
2013-05-31 10:34:02 +00:00
}
}
return var6;
}
}