    001package net.minecraft.world.gen.layer;
    002
    003public class GenLayerIsland extends GenLayer
    004{
    005    public GenLayerIsland(long par1)
    006    {
    007        super(par1);
    008    }
    009
    010    /**
    011     * Returns a list of integer values generated by this layer. These may be interpreted as temperatures, rainfall
    012     * amounts, or biomeList[] indices based on the particular GenLayer subclass.
    013     */
    014    public int[] getInts(int par1, int par2, int par3, int par4)
    015    {
    016        int[] var5 = IntCache.getIntCache(par3 * par4);
    017
    018        for (int var6 = 0; var6 < par4; ++var6)
    019        {
    020            for (int var7 = 0; var7 < par3; ++var7)
    021            {
    022                this.initChunkSeed((long)(par1 + var7), (long)(par2 + var6));
    023                var5[var7 + var6 * par3] = this.nextInt(10) == 0 ? 1 : 0;
    024            }
    025        }
    026
    027        if (par1 > -par3 && par1 <= 0 && par2 > -par4 && par2 <= 0)
    028        {
    029            var5[-par1 + -par2 * par3] = 1;
    030        }
    031
    032        return var5;
    033    }
    034}