Exemple #1
0
        public virtual void Func_667_a(net.minecraft.src.IChunkProvider ichunkprovider, net.minecraft.src.World
                                       world, int i, int j, byte[] abyte0)
        {
            int k = field_947_a;

            rand.SetSeed(world.GetSeed());
            long l  = (rand.NextLong() / 2L) * 2L + 1L;
            long l1 = (rand.NextLong() / 2L) * 2L + 1L;

            for (int i1 = i - k; i1 <= i + k; i1++)
            {
                for (int j1 = j - k; j1 <= j + k; j1++)
                {
                    rand.SetSeed((long)i1 * l + (long)j1 * l1 ^ world.GetSeed());
                    Func_666_a(world, i1, j1, i, j, abyte0);
                }
            }
        }
 public WorldChunkManager(net.minecraft.src.World world)
 {
     // Referenced classes of package net.minecraft.src:
     //            NoiseGeneratorOctaves2, World, ChunkCoordIntPair, BiomeGenBase
     field_4255_e = new net.minecraft.src.NoiseGeneratorOctaves2(new SharpBukkitLive.SharpBukkit.SharpRandom(world.GetSeed() * 9871L), 4);
     field_4254_f = new net.minecraft.src.NoiseGeneratorOctaves2(new SharpBukkitLive.SharpBukkit.SharpRandom(world.GetSeed() * 39811L), 4);
     field_4253_g = new net.minecraft.src.NoiseGeneratorOctaves2(new SharpBukkitLive.SharpBukkit.SharpRandom(world.GetSeed() *unchecked ((long)(0x84a59L))), 2);
 }