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