Drawer() { Coord.sort(blobStart, blobEnd); size = blobEnd.difference(blobStart); size.x++; size.y++; size.z++; NoiseGeneratorOctaves noiseGen = new NoiseGeneratorOctaves(rand, 2); noise = new double[size.x * size.y * size.z]; double s = 1.0 / 256; // 1.0/512.0; noiseGen.generateNoiseOctaves(noise, blobStart.x, blobStart.y, blobStart.z, size.x, size.y, size.z, blobEnd.x * s, blobEnd.y * s, blobEnd.z * s); for (int i = 0; i < noise.length; i++) { noise[i] = (noise[i] + 1) / 2; } this.len = size.magnitude(); }
@SubscribeEvent public void injectNoiseSmoothers(InitNoiseGensEvent event) { // Create a flat arena around colossi. if (!genOnWorld(event.world)) return; int[] target_noises = new int[] { 0, 1, 2, 5 }; int max = target_noises[0]; for (int i : target_noises) max = Math.max(max, i); if (event.newNoiseGens == null || max >= event.newNoiseGens.length) { Core.logWarning("Colossi will not generate in dimension: " + event.world.provider.getDimensionId()); dimensionBlacklist.put(event.world.provider.getDimensionId(), (byte) 1); return; } for (int noise_index : target_noises) { NoiseGenerator parentGenerator = event.newNoiseGens[noise_index]; event.newNoiseGens[noise_index] = new SmoothNoiseNearColossi(noise_index, (NoiseGeneratorOctaves) parentGenerator); } }
public ChunkProviderGenerateVC(World worldIn, long seed, boolean mapfeaturesenabled, String customgenjson) { super(worldIn, seed, mapfeaturesenabled, customgenjson); strongholdGenerator = new MapGenStronghold(); // (MapGenStronghold) TerrainGen.getModdedMapGen(strongholdGenerator, STRONGHOLD); caveGenerator = new MapGenCavesVC(); floragenerator = new MapGenFlora(seed); this.worldObj = worldIn; this.rand = new Random(seed); this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 4); this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8); this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 2); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 1); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); this.seed = seed; this.noiseFieldModifier = GenLayerVC.genNoiseFieldModifier(seed); genrocklayers = new GenRockLayers(seed); ageLayer = GenLayerVC.genAgemap(seed); //heightmapGen = GenLayerVC.genHeightmap(seed); }
public ChunkProviderCustomDimension(World worldObj, long seed, boolean features){ this.worldObj = worldObj; this.mapFeaturesEnabled = features; this.rand = new Random(seed); this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8); this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); NoiseGeneratorOctaves[] noiseGens = {noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5, noiseGen6, mobSpawnerNoise}; noiseGens = TerrainGen.getModdedNoiseGenerators(worldObj, rand, noiseGens); this.noiseGen1 = noiseGens[0]; this.noiseGen2 = noiseGens[1]; this.noiseGen3 = noiseGens[2]; this.noiseGen4 = noiseGens[3]; this.noiseGen5 = noiseGens[4]; this.noiseGen6 = noiseGens[5]; this.mobSpawnerNoise = noiseGens[6]; }
public ChunkProviderRune2(World par1World, long par2) { this.worldObj = par1World; this.hellRNG = new Random(par2); this.netherNoiseGen1 = new NoiseGeneratorOctaves(this.hellRNG, 16); this.netherNoiseGen2 = new NoiseGeneratorOctaves(this.hellRNG, 16); this.netherNoiseGen3 = new NoiseGeneratorOctaves(this.hellRNG, 8); this.slowsandGravelNoiseGen = new NoiseGeneratorOctaves(this.hellRNG, 4); this.netherrackExculsivityNoiseGen = new NoiseGeneratorOctaves(this.hellRNG, 4); this.netherNoiseGen6 = new NoiseGeneratorOctaves(this.hellRNG, 10); this.netherNoiseGen7 = new NoiseGeneratorOctaves(this.hellRNG, 16); NoiseGeneratorOctaves[] noiseGens = {netherNoiseGen1, netherNoiseGen2, netherNoiseGen3, slowsandGravelNoiseGen, netherrackExculsivityNoiseGen, netherNoiseGen6, netherNoiseGen7}; noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, this.hellRNG, noiseGens); this.netherNoiseGen1 = noiseGens[0]; this.netherNoiseGen2 = noiseGens[1]; this.netherNoiseGen3 = noiseGens[2]; this.slowsandGravelNoiseGen = noiseGens[3]; this.netherrackExculsivityNoiseGen = noiseGens[4]; this.netherNoiseGen6 = noiseGens[5]; this.netherNoiseGen7 = noiseGens[6]; }
public ChunkProviderGenerateVC(World worldIn, long seed, boolean mapfeaturesenabled, String customgenjson) { super(worldIn, seed, mapfeaturesenabled, customgenjson); ageLayer = GenLayerVC.genAgemap(seed); caveGenerator = new MapGenCavesVC(); floragenerator = new MapGenFlora(seed, ageLayer); lakegenerator = new MapGenLakes(); this.worldObj = worldIn; this.rand = new Random(seed); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); this.seed = seed; genrocklayers = new GenRockLayers(seed); rockOffsetNoiseX = GenLayerVC.genHorizontalRockOffsetMap(seed); rockOffsetNoiseZ = GenLayerVC.genHorizontalRockOffsetMap(seed+500); //heightmapGen = GenLayerVC.genHeightmap(seed); normalTerrainGen = new GenLayerTerrain(seed + 0); }
public ChunkProviderMultiBiome(World world, long seed, boolean mapFeaturesEnabled) { this.worldObj = world; this.mapFeaturesEnabled = mapFeaturesEnabled; this.rand = new Random(seed); this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8); this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); NoiseGeneratorOctaves[] noiseGens = { noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5, noiseGen6, mobSpawnerNoise }; noiseGens = TerrainGen.getModdedNoiseGenerators(world, this.rand, noiseGens); this.noiseGen1 = noiseGens[0]; this.noiseGen2 = noiseGens[1]; this.noiseGen3 = noiseGens[2]; this.noiseGen4 = noiseGens[3]; this.noiseGen5 = noiseGens[4]; this.noiseGen6 = noiseGens[5]; this.mobSpawnerNoise = noiseGens[6]; }
public ChunkProviderOmothol(World par1World, long par2) { worldObj = par1World; rand = new Random(par2); noiseGen1 = new NoiseGeneratorOctaves(rand, 16); noiseGen2 = new NoiseGeneratorOctaves(rand, 16); noiseGen3 = new NoiseGeneratorOctaves(rand, 8); noiseGen4 = new NoiseGeneratorOctaves(rand, 10); noiseGen5 = new NoiseGeneratorOctaves(rand, 16); // NoiseGenerator[] noiseGens = {noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5}; // noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, rand, noiseGens); // noiseGen1 = (NoiseGeneratorOctaves)noiseGens[0]; // noiseGen2 = (NoiseGeneratorOctaves)noiseGens[1]; // noiseGen3 = (NoiseGeneratorOctaves)noiseGens[2]; // noiseGen4 = (NoiseGeneratorOctaves)noiseGens[3]; // noiseGen5 = (NoiseGeneratorOctaves)noiseGens[4]; }
public ChunkProviderHeaven(World world, long l) { super(world, l, true); unusedSandNoise = new double[256]; unusedGravelNoise = new double[256]; stoneNoise = new double[256]; caveGen = new MapGenCaves(); field_28088_i = new int[32][32]; worldObj = world; random = new Random(l); field_28086_k = new NoiseGeneratorOctaves(random, 16); field_28085_l = new NoiseGeneratorOctaves(random, 16); field_28084_m = new NoiseGeneratorOctaves(random, 8); field_28083_n = new NoiseGeneratorOctaves(random, 4); field_28082_o = new NoiseGeneratorOctaves(random, 4); field_28096_a = new NoiseGeneratorOctaves(random, 10); field_28095_b = new NoiseGeneratorOctaves(random, 16); field_28094_c = new NoiseGeneratorOctaves(random, 8); }
public NyxChunkProvider(World par1World, long seed, boolean par4) { final Random rand = new Random(~seed); ablock = new Block[1 << 16]; abyte = new byte[1 << 16]; worldObj = par1World; noiseGen = new NoiseGeneratorOctaves[4]; noiseGen[0] = new NoiseGeneratorOctaves(rand, 16); noiseGen[1] = new NoiseGeneratorOctaves(rand, 16); noiseGen[2] = new NoiseGeneratorOctaves(rand, 8); noiseGen[3] = new NoiseGeneratorOctaves(rand, 16); // noiseGenStone = new NoiseGeneratorPerlin(rand, 4); // this.noiseGenPublic = new NoiseGeneratorOctaves(this.rand, 10); densitymap = new double[magic*magic*33]; parabolicField = new float[radius*radius*4]; for (int j = -radius; j <= radius; ++j) { for (int k = -radius; k <= radius; ++k) { final boolean corner = Math.abs(j) >= radius-1 && Math.abs(k) >= radius-1; final float f = corner?0:1f / MathHelper.sqrt_float(j * j + k * k + 0.5f); parabolicField[j + radius + (k + radius) * radius] = f; } } }
public ChunkProviderCustomHell(World par1World, long par2) { this.worldObj = par1World; this.hellRNG = new Random(par2); this.netherNoiseGen1 = new NoiseGeneratorOctaves(this.hellRNG, 16); this.netherNoiseGen2 = new NoiseGeneratorOctaves(this.hellRNG, 16); this.netherNoiseGen3 = new NoiseGeneratorOctaves(this.hellRNG, 8); this.slowsandGravelNoiseGen = new NoiseGeneratorOctaves(this.hellRNG, 4); this.netherrackExculsivityNoiseGen = new NoiseGeneratorOctaves(this.hellRNG, 4); this.netherNoiseGen6 = new NoiseGeneratorOctaves(this.hellRNG, 10); this.netherNoiseGen7 = new NoiseGeneratorOctaves(this.hellRNG, 16); NoiseGenerator[] noiseGens = {netherNoiseGen1, netherNoiseGen2, netherNoiseGen3, slowsandGravelNoiseGen, netherrackExculsivityNoiseGen, netherNoiseGen6, netherNoiseGen7}; noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, this.hellRNG, noiseGens); this.netherNoiseGen1 = (NoiseGeneratorOctaves)noiseGens[0]; this.netherNoiseGen2 = (NoiseGeneratorOctaves)noiseGens[1]; this.netherNoiseGen3 = (NoiseGeneratorOctaves)noiseGens[2]; this.slowsandGravelNoiseGen = (NoiseGeneratorOctaves)noiseGens[3]; this.netherrackExculsivityNoiseGen = (NoiseGeneratorOctaves)noiseGens[4]; this.netherNoiseGen6 = (NoiseGeneratorOctaves)noiseGens[5]; this.netherNoiseGen7 = (NoiseGeneratorOctaves)noiseGens[6]; }
public ChunkProviderDesertSector(World world, long seed, boolean mapFeaturesEnabled) { this.mapFeaturesEnabled = mapFeaturesEnabled; this.world = world; this.random = new Random(seed); this.noiseGen1 = new NoiseGeneratorOctaves(this.random, 8); // this.noiseGen2 = new NoiseGeneratorOctaves(this.random, 16); // this.noiseGen3 = new NoiseGeneratorOctaves(this.random, 8); this.noiseGen4 = new NoiseGeneratorOctaves(this.random, 4); // this.noiseGen5 = new NoiseGeneratorOctaves(this.random, 10); // this.noiseGen6 = new NoiseGeneratorOctaves(this.random, 16); // this.mobSpawnerNoiseGen = new NoiseGeneratorOctaves(this.random, 8); // for (int j = -2; j <= 2; ++j) // { // for (int k = -2; k <= 2; ++k) // { // float f = 10.0F / MathHelper.sqrt_float((float) (j * j + k * k) + 0.2F); // this.parabolicField[j + 2 + (k + 2) * 5] = f; // } // } }
public IceSectorChunkProvider(World world, long worldSeed) { this.world = world; this.random = new Random(worldSeed); this.noiseGen1 = new NoiseGeneratorOctaves(this.random, 16); this.noiseGen2 = new NoiseGeneratorOctaves(this.random, 16); this.noiseGen3 = new NoiseGeneratorOctaves(this.random, 8); this.noiseGen4 = new NoiseGeneratorOctaves(this.random, 10); this.noiseGen5 = new NoiseGeneratorOctaves(this.random, 16); NoiseGenerator[] noiseGens = {noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5}; noiseGens = TerrainGen.getModdedNoiseGenerators(world, this.random, noiseGens); this.noiseGen1 = (NoiseGeneratorOctaves) noiseGens[0]; this.noiseGen2 = (NoiseGeneratorOctaves) noiseGens[1]; this.noiseGen3 = (NoiseGeneratorOctaves) noiseGens[2]; this.noiseGen4 = (NoiseGeneratorOctaves) noiseGens[3]; this.noiseGen5 = (NoiseGeneratorOctaves) noiseGens[4]; }
public ChunkProviderEI(World world, long seed, boolean mapFeaturesEnabled) { this.worldObj = world; this.mapFeaturesEnabled = mapFeaturesEnabled; this.rand = new Random(seed); this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8); this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); NoiseGeneratorOctaves[] noiseGens = { noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5, noiseGen6, mobSpawnerNoise }; noiseGens = TerrainGen.getModdedNoiseGenerators(world, this.rand, noiseGens); this.noiseGen1 = noiseGens[0]; this.noiseGen2 = noiseGens[1]; this.noiseGen3 = noiseGens[2]; this.noiseGen4 = noiseGens[3]; this.noiseGen5 = noiseGens[4]; this.noiseGen6 = noiseGens[5]; this.mobSpawnerNoise = noiseGens[6]; }
public ChunkProviderEI(World world, long seed, boolean mapFeaturesEnabled) { this.worldObj = world; this.mapFeaturesEnabled = mapFeaturesEnabled; this.rand = new Random(seed); this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8); this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); NoiseGeneratorOctaves[] noiseGens = { noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5, noiseGen6, mobSpawnerNoise }; noiseGens = (NoiseGeneratorOctaves[]) TerrainGen.getModdedNoiseGenerators(world, this.rand, noiseGens); this.noiseGen1 = noiseGens[0]; this.noiseGen2 = noiseGens[1]; this.noiseGen3 = noiseGens[2]; this.noiseGen4 = noiseGens[3]; this.noiseGen5 = noiseGens[4]; this.noiseGen6 = noiseGens[5]; this.mobSpawnerNoise = noiseGens[6]; }
public AquatanChunkProvider(World par1World, long par2, boolean par4) { this.worldObj = par1World; this.mapFeaturesEnabled = par4; this.rand = new Random(par2); this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8); this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); NoiseGeneratorOctaves[] noiseGens = {noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5, noiseGen6, mobSpawnerNoise}; noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, this.rand, noiseGens); this.noiseGen1 = noiseGens[0]; this.noiseGen2 = noiseGens[1]; this.noiseGen3 = noiseGens[2]; this.noiseGen4 = noiseGens[3]; this.noiseGen5 = noiseGens[4]; this.noiseGen6 = noiseGens[5]; this.mobSpawnerNoise = noiseGens[6]; }
public MoltarChunkProvider(World par1World, long par2, boolean par4, BaseWorldType type) { this.worldObj = par1World; this.mapFeaturesEnabled = par4; this.rand = new Random(par2); this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8); this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); NoiseGeneratorOctaves[] noiseGens = {noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5, noiseGen6, mobSpawnerNoise}; noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, this.rand, noiseGens); this.noiseGen1 = noiseGens[0]; this.noiseGen2 = noiseGens[1]; this.noiseGen3 = noiseGens[2]; this.noiseGen4 = noiseGens[3]; this.noiseGen5 = noiseGens[4]; this.noiseGen6 = noiseGens[5]; this.mobSpawnerNoise = noiseGens[6]; this.worldType = type; }
public FungalMarshChunkProvider(World par1World, long par2, boolean par4) { this.worldObj = par1World; this.mapFeaturesEnabled = par4; this.rand = new Random(par2); this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8); this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); NoiseGeneratorOctaves[] noiseGens = {noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5, noiseGen6, mobSpawnerNoise}; noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, this.rand, noiseGens); this.noiseGen1 = noiseGens[0]; this.noiseGen2 = noiseGens[1]; this.noiseGen3 = noiseGens[2]; this.noiseGen4 = noiseGens[3]; this.noiseGen5 = noiseGens[4]; this.noiseGen6 = noiseGens[5]; this.mobSpawnerNoise = noiseGens[6]; }
public AracoriaChunkProvider(World par1World, long par2, boolean par4) { this.worldObj = par1World; this.mapFeaturesEnabled = par4; this.rand = new Random(par2); this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8); this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); NoiseGeneratorOctaves[] noiseGens = {noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5, noiseGen6, mobSpawnerNoise}; noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, this.rand, noiseGens); this.noiseGen1 = noiseGens[0]; this.noiseGen2 = noiseGens[1]; this.noiseGen3 = noiseGens[2]; this.noiseGen4 = noiseGens[3]; this.noiseGen5 = noiseGens[4]; this.noiseGen6 = noiseGens[5]; this.mobSpawnerNoise = noiseGens[6]; this.essenceSpikeGen = new MapGenEssenceSpike(Block.cobblestone.blockID, Block.waterMoving.blockID); }
public ChunkProviderTerra(World par1World, long par2, boolean par4) { worldObj = par1World; mapFeaturesEnabled = par4; rand = new Random(par2); noiseGen1 = new NoiseGeneratorOctaves(rand, 16); noiseGen2 = new NoiseGeneratorOctaves(rand, 16); noiseGen3 = new NoiseGeneratorOctaves(rand, 8); noiseGen4 = new NoiseGeneratorOctaves(rand, 4); noiseGen5 = new NoiseGeneratorOctaves(rand, 10); noiseGen6 = new NoiseGeneratorOctaves(rand, 16); mobSpawnerNoise = new NoiseGeneratorOctaves(rand, 8); NoiseGeneratorOctaves[] noiseGens = { noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5, noiseGen6, mobSpawnerNoise }; noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, rand, noiseGens); noiseGen1 = noiseGens[0]; noiseGen2 = noiseGens[1]; noiseGen3 = noiseGens[2]; noiseGen4 = noiseGens[3]; noiseGen5 = noiseGens[4]; noiseGen6 = noiseGens[5]; mobSpawnerNoise = noiseGens[6]; }
public ChunkProviderDreamLand(World par1World, long par2, boolean par4) { super(par1World, par2, par4); this.worldObj = par1World; this.mapFeaturesEnabled = par4; this.rand = new Random(par2); this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8); this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); NoiseGeneratorOctaves[] noiseGens = {noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5, noiseGen6, mobSpawnerNoise}; noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, this.rand, noiseGens); this.noiseGen1 = noiseGens[0]; this.noiseGen2 = noiseGens[1]; this.noiseGen3 = noiseGens[2]; this.noiseGen4 = noiseGens[3]; this.noiseGen5 = noiseGens[4]; this.noiseGen6 = noiseGens[5]; this.mobSpawnerNoise = noiseGens[6]; }
public ChunkProviderNightMare(World par1World, long par2, boolean par4) { super(par1World, par2, par4); this.worldObj = par1World; this.mapFeaturesEnabled = par4; this.rand = new Random(par2); this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8); this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); NoiseGeneratorOctaves[] noiseGens = {noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5, noiseGen6, mobSpawnerNoise}; noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, this.rand, noiseGens); this.noiseGen1 = noiseGens[0]; this.noiseGen2 = noiseGens[1]; this.noiseGen3 = noiseGens[2]; this.noiseGen4 = noiseGens[3]; this.noiseGen5 = noiseGens[4]; this.noiseGen6 = noiseGens[5]; this.mobSpawnerNoise = noiseGens[6]; }
public ChunkProviderXthuoth(World world, long seed) { this.world = world; xarRNG = new Random(seed); this.netherNoiseGen1 = new NoiseGeneratorOctaves(this.xarRNG, 16); this.netherNoiseGen2 = new NoiseGeneratorOctaves(this.xarRNG, 16); this.netherNoiseGen3 = new NoiseGeneratorOctaves(this.xarRNG, 8); this.netherNoiseGen6 = new NoiseGeneratorOctaves(this.xarRNG, 10); this.netherNoiseGen7 = new NoiseGeneratorOctaves(this.xarRNG, 16); NoiseGenerator[] noiseGens = {netherNoiseGen1, netherNoiseGen2, netherNoiseGen3, netherNoiseGen6, netherNoiseGen7}; noiseGens = TerrainGen.getModdedNoiseGenerators(world, this.xarRNG, noiseGens); this.netherNoiseGen1 = noiseGens[0]; this.netherNoiseGen2 = noiseGens[1]; this.netherNoiseGen3 = noiseGens[2]; this.netherNoiseGen6 = noiseGens[3]; this.netherNoiseGen7 = noiseGens[4]; }
public OldChunkProviderMarona(World par1World, long par2, boolean b) { this.worldObj = par1World; this.soulRNG = new Random(par2); this.netherNoiseGen1 = new NoiseGeneratorOctaves(this.soulRNG, 16); this.netherNoiseGen2 = new NoiseGeneratorOctaves(this.soulRNG, 16); this.netherNoiseGen3 = new NoiseGeneratorOctaves(this.soulRNG, 8); this.lateriteGrassPorphyryNoise = new NoiseGeneratorOctaves(this.soulRNG, 4); this.porphyryExclusivityNoiseGen = new NoiseGeneratorOctaves(this.soulRNG, 4); this.netherNoiseGen6 = new NoiseGeneratorOctaves(this.soulRNG, 10); this.netherNoiseGen7 = new NoiseGeneratorOctaves(this.soulRNG, 16); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.soulRNG, 8); NoiseGenerator[] noiseGens = {netherNoiseGen1, netherNoiseGen2, netherNoiseGen3, lateriteGrassPorphyryNoise, porphyryExclusivityNoiseGen, netherNoiseGen6, netherNoiseGen7, mobSpawnerNoise}; noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, this.soulRNG, noiseGens); this.netherNoiseGen1 = (NoiseGeneratorOctaves) noiseGens[0]; this.netherNoiseGen2 = (NoiseGeneratorOctaves) noiseGens[1]; this.netherNoiseGen3 = (NoiseGeneratorOctaves) noiseGens[2]; this.lateriteGrassPorphyryNoise = (NoiseGeneratorOctaves) noiseGens[3]; this.porphyryExclusivityNoiseGen = (NoiseGeneratorOctaves) noiseGens[4]; this.netherNoiseGen6 = (NoiseGeneratorOctaves) noiseGens[5]; this.netherNoiseGen7 = (NoiseGeneratorOctaves) noiseGens[6]; this.mobSpawnerNoise = (NoiseGeneratorOctaves) noiseGens[7]; }
public ChunkProviderFrozenHearth(World p_i2005_1_, long p_i2005_2_){ this.worldObj = p_i2005_1_; this.frozenRNG = new Random(p_i2005_2_); this.netherNoiseGen1 = new NoiseGeneratorOctaves(this.frozenRNG, 16); this.netherNoiseGen2 = new NoiseGeneratorOctaves(this.frozenRNG, 16); this.netherNoiseGen3 = new NoiseGeneratorOctaves(this.frozenRNG, 8); this.lateriteGrassPorphyryNoise = new NoiseGeneratorOctaves(this.frozenRNG, 4); this.porphyryExclusivityNoiseGen = new NoiseGeneratorOctaves(this.frozenRNG, 4); this.netherNoiseGen6 = new NoiseGeneratorOctaves(this.frozenRNG, 10); this.netherNoiseGen7 = new NoiseGeneratorOctaves(this.frozenRNG, 16); NoiseGenerator[] noiseGens = {netherNoiseGen1, netherNoiseGen2, netherNoiseGen3, lateriteGrassPorphyryNoise, porphyryExclusivityNoiseGen, netherNoiseGen6, netherNoiseGen7}; noiseGens = TerrainGen.getModdedNoiseGenerators(p_i2005_1_, this.frozenRNG, noiseGens); this.netherNoiseGen1 = (NoiseGeneratorOctaves)noiseGens[0]; this.netherNoiseGen2 = (NoiseGeneratorOctaves)noiseGens[1]; this.netherNoiseGen3 = (NoiseGeneratorOctaves)noiseGens[2]; this.lateriteGrassPorphyryNoise = (NoiseGeneratorOctaves)noiseGens[3]; this.porphyryExclusivityNoiseGen = (NoiseGeneratorOctaves)noiseGens[4]; this.netherNoiseGen6 = (NoiseGeneratorOctaves)noiseGens[5]; this.netherNoiseGen7 = (NoiseGeneratorOctaves)noiseGens[6]; }
public ChunkProviderSoulForest(World p_i2005_1_, long p_i2005_2_){ this.worldObj = p_i2005_1_; this.soulRNG = new Random(p_i2005_2_); this.netherNoiseGen1 = new NoiseGeneratorOctaves(this.soulRNG, 16); this.netherNoiseGen2 = new NoiseGeneratorOctaves(this.soulRNG, 16); this.netherNoiseGen3 = new NoiseGeneratorOctaves(this.soulRNG, 8); this.lateriteGrassPorphyryNoise = new NoiseGeneratorOctaves(this.soulRNG, 4); this.porphyryExclusivityNoiseGen = new NoiseGeneratorOctaves(this.soulRNG, 4); this.netherNoiseGen6 = new NoiseGeneratorOctaves(this.soulRNG, 10); this.netherNoiseGen7 = new NoiseGeneratorOctaves(this.soulRNG, 16); NoiseGenerator[] noiseGens = {netherNoiseGen1, netherNoiseGen2, netherNoiseGen3, lateriteGrassPorphyryNoise, porphyryExclusivityNoiseGen, netherNoiseGen6, netherNoiseGen7}; noiseGens = TerrainGen.getModdedNoiseGenerators(p_i2005_1_, this.soulRNG, noiseGens); this.netherNoiseGen1 = (NoiseGeneratorOctaves)noiseGens[0]; this.netherNoiseGen2 = (NoiseGeneratorOctaves)noiseGens[1]; this.netherNoiseGen3 = (NoiseGeneratorOctaves)noiseGens[2]; this.lateriteGrassPorphyryNoise = (NoiseGeneratorOctaves)noiseGens[3]; this.porphyryExclusivityNoiseGen = (NoiseGeneratorOctaves)noiseGens[4]; this.netherNoiseGen6 = (NoiseGeneratorOctaves)noiseGens[5]; this.netherNoiseGen7 = (NoiseGeneratorOctaves)noiseGens[6]; }
public RasterlandChunkProvider(World world, long seed, boolean mapFeaturesEnabled) { this.worldObj = world; this.mapFeaturesEnabled = mapFeaturesEnabled; this.rand = new Random(seed); this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8); this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); NoiseGeneratorOctaves[] noiseGens = { noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5, noiseGen6, mobSpawnerNoise }; noiseGens = TerrainGen.getModdedNoiseGenerators(world, this.rand, noiseGens); this.noiseGen1 = noiseGens[0]; this.noiseGen2 = noiseGens[1]; this.noiseGen3 = noiseGens[2]; this.noiseGen4 = noiseGens[3]; this.noiseGen5 = noiseGens[4]; this.noiseGen6 = noiseGens[5]; this.mobSpawnerNoise = noiseGens[6]; }
public ChunkProviderVoid(World par1World, long par2, boolean par4) { this.worldObj = par1World; this.mapFeaturesEnabled = par4; this.rand = new Random(par2); this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8); this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); NoiseGeneratorOctaves[] noiseGens = {noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5, noiseGen6, mobSpawnerNoise}; noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, this.rand, noiseGens); this.noiseGen1 = noiseGens[0]; this.noiseGen2 = noiseGens[1]; this.noiseGen3 = noiseGens[2]; this.noiseGen4 = noiseGens[3]; this.noiseGen5 = noiseGens[4]; this.noiseGen6 = noiseGens[5]; this.mobSpawnerNoise = noiseGens[6]; }
public FirmaChunkGen(World worldIn, boolean mapFeaturesEnabledIn) { this.world = worldIn; this.mapFeaturesEnabled = mapFeaturesEnabledIn; this.rand = new Random(world.getSeed()); this.rockStrataNoise = new VoronoiNoise(world.getSeed(), (short) 0); String customSetting = worldIn.getWorldInfo().getGeneratorOptions(); if(customSetting.length()==0){ customSetting = "{\"baseSize\":20.0,\"heightScale\":2.0,\"seaLevel\":151}"; } this.settings = ChunkProviderSettings.Factory.jsonToFactory(customSetting).build(); this.OCEAN = this.settings.useLavaOceans ? FirmaMod.lava.getBlock().getDefaultState() : OCEAN; this.heightMap = new double[825]; this.biomeWeights = new float[25]; for (int i = -2; i <= 2; ++i) { for (int j = -2; j <= 2; ++j) { float f = 10.0F / MathHelper.sqrt(i * i + j * j + 0.2F); this.biomeWeights[i + 2 + (j + 2) * 5] = f; } } this.minLimitPerlinNoise = new NoiseGeneratorOctaves(this.rand, 16); this.maxLimitPerlinNoise = new NoiseGeneratorOctaves(this.rand, 16); this.mainPerlinNoise = new NoiseGeneratorOctaves(this.rand, 8); this.depthNoise = new NoiseGeneratorOctaves(this.rand, 16); }
public ChunkProviderSpaceLakes(World world, long seed, boolean flag) { super(); this.stoneNoise = new double[256]; this.worldObj = world; this.rand = new Random(seed); this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen8 = new Gradient(this.rand.nextLong(), 2, 0.25F); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); this.field_147431_j = new NoiseGeneratorOctaves(this.rand, 16); this.field_147432_k = new NoiseGeneratorOctaves(this.rand, 16); this.field_147429_l = new NoiseGeneratorOctaves(this.rand, 8); this.field_147430_m = new NoiseGeneratorPerlin(this.rand, 4); this.terrainCalcs = new double[825]; this.parabolicField = new float[25]; for (int j = -2; j <= 2; j++) { for (int k = -2; k <= 2; k++) { float f = 10.0F / MathHelper.sqrt_float(j * j + k * k + 0.2F); this.parabolicField[j + 2 + (k + 2) * 5] = f; } } }
public Context(NoiseGeneratorOctaves lperlin1, NoiseGeneratorOctaves lperlin2, NoiseGeneratorOctaves perlin, NoiseGeneratorOctaves scale, NoiseGeneratorOctaves depth) { this.lperlin1 = lperlin1; this.lperlin2 = lperlin2; this.perlin = perlin; this.scale = scale; this.depth = depth; }
public ContextOverworld(NoiseGeneratorOctaves lperlin1, NoiseGeneratorOctaves lperlin2, NoiseGeneratorOctaves perlin, NoiseGeneratorPerlin height, NoiseGeneratorOctaves scale, NoiseGeneratorOctaves depth, NoiseGeneratorOctaves forest) { super(lperlin1, lperlin2, perlin, scale, depth); this.height = height; this.forest = forest; }
public ContextHell(NoiseGeneratorOctaves lperlin1, NoiseGeneratorOctaves lperlin2, NoiseGeneratorOctaves perlin, NoiseGeneratorOctaves perlin2, NoiseGeneratorOctaves perlin3, NoiseGeneratorOctaves scale, NoiseGeneratorOctaves depth) { super(lperlin1, lperlin2, perlin, scale, depth); this.perlin2 = perlin2; this.perlin3 = perlin3; }
public void initialise(long seed) { rand = new Random(seed); noiseGen1 = new NoiseGeneratorOctaves(rand, 16); noiseGen2 = new NoiseGeneratorOctaves(rand, 16); noiseGen3 = new NoiseGeneratorOctaves(rand, 8); noiseGen4 = new NoiseGeneratorOctaves(rand, 16); }
public ChunkProviderAether(World world, long seed) { this.worldObj = world; this.rand = new Random(seed); this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16); this.perlinNoise1 = new NoiseGeneratorOctaves(this.rand, 8); }
public TeletoryChunkProvider(World worldIn, long seed) { world = worldIn; random = new Random(seed); noise1 = new NoiseGeneratorOctaves(random, 8); base = Blocks.END_STONE.getDefaultState(); dirt = Blocks.DIRT.getDefaultState().withProperty(BlockDirt.VARIANT, BlockDirt.DirtType.COARSE_DIRT); ore = BlockEnderOre.INSTANCE.getDefaultState(); bush = Blocks.DEADBUSH.getDefaultState(); }
public ChunkProviderOcean(World par1World, long par2, boolean par4) { this.worldObj = par1World; this.mapFeaturesEnabled = par4; this.field_147435_p = par1World.getWorldInfo().getTerrainType(); this.rand = new Random(par2); this.field_147431_j = new NoiseGeneratorOctaves(this.rand, 16); this.field_147432_k = new NoiseGeneratorOctaves(this.rand, 16); this.field_147429_l = new NoiseGeneratorOctaves(this.rand, 8); this.field_147430_m = new NoiseGeneratorPerlin(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); this.field_147434_q = new double[825]; this.parabolicField = new float[25]; for (int j = -2; j <= 2; ++j) { for (int k = -2; k <= 2; ++k) { float f = 10.0F / MathHelper.sqrt_float(j * j + k * k + 0.2F); this.parabolicField[(j + 2 + (k + 2) * 5)] = f; } } NoiseGenerator[] noiseGens = { this.field_147431_j, this.field_147432_k, this.field_147429_l, this.field_147430_m, this.noiseGen5, this.noiseGen6, this.mobSpawnerNoise }; noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, this.rand, noiseGens); this.field_147431_j = ((NoiseGeneratorOctaves) noiseGens[0]); this.field_147432_k = ((NoiseGeneratorOctaves) noiseGens[1]); this.field_147429_l = ((NoiseGeneratorOctaves) noiseGens[2]); this.field_147430_m = ((NoiseGeneratorPerlin) noiseGens[3]); this.noiseGen5 = ((NoiseGeneratorOctaves) noiseGens[4]); this.noiseGen6 = ((NoiseGeneratorOctaves) noiseGens[5]); this.mobSpawnerNoise = ((NoiseGeneratorOctaves) noiseGens[6]); }
public ChunkProviderEpic(World world, long seed, boolean mapFeaturesEnabled) { GameLogHelper.writeToLog(Level.INFO, "Loading Chunk Provider for dmension."); this.worldObj = world; this.mapFeaturesEnabled = mapFeaturesEnabled; this.worldType = world.getWorldInfo().getTerrainType(); this.rand = new Random(seed); this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16); this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8); this.noisePerl = new NoiseGeneratorPerlin(this.rand, 4); this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10); this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16); this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8); this.noiseArray = new double[825]; this.parabolicField = new float[25]; for (int j = -2; j <= 2; ++j) { for (int k = -2; k <= 2; ++k) { float f = 10.0F / MathHelper.sqrt_float((float)(j * j + k * k) + 0.2F); this.parabolicField[j + 2 + (k + 2) * 5] = f; } } NoiseGenerator[] noiseGens = {noiseGen1, noiseGen2, noiseGen3, noisePerl, noiseGen5, noiseGen6, mobSpawnerNoise}; noiseGens = TerrainGen.getModdedNoiseGenerators(world, this.rand, noiseGens); this.noiseGen1 = (NoiseGeneratorOctaves)noiseGens[0]; this.noiseGen2 = (NoiseGeneratorOctaves)noiseGens[1]; this.noiseGen3 = (NoiseGeneratorOctaves)noiseGens[2]; this.noisePerl = (NoiseGeneratorPerlin)noiseGens[3]; this.noiseGen5 = (NoiseGeneratorOctaves)noiseGens[4]; this.noiseGen6 = (NoiseGeneratorOctaves)noiseGens[5]; this.mobSpawnerNoise = (NoiseGeneratorOctaves)noiseGens[6]; }
private void initNoise(Coord at) { dim = 32; int half = dim / 2; start = at.add(-half, -half, -half); end = at.add(half, half, half); int octaves = 3; octaves -= Math.log10(stack.stackSize / 5); if (octaves < 1) octaves = 1; noise = new NoiseGeneratorOctaves(rand, octaves).generateNoiseOctaves(null, start.x, start.y, start.z, dim, dim, dim, end.x, end.y, end.z); }
public ChunkProviderUnderworld(World world, long seed) { this.worldObj = world; this.dimRNG = new Random(seed - 1L); // make it different than the Nether this.underworldNoiseGen1 = new NoiseGeneratorOctaves(this.dimRNG, 16); // 16 this.underworldNoiseGen2 = new NoiseGeneratorOctaves(this.dimRNG, 16); // 16 this.underworldNoiseGen3 = new NoiseGeneratorOctaves(this.dimRNG, 8); // 8 this.grassandstoneNoiseGen = new NoiseGeneratorOctaves(this.dimRNG, 4); // 4 this.understoneExculsivityNoiseGen = new NoiseGeneratorOctaves(this.dimRNG, 4); // 4 this.underworldNoiseGen6 = new NoiseGeneratorOctaves(this.dimRNG, 10); // 10 this.underworldNoiseGen7 = new NoiseGeneratorOctaves(this.dimRNG, 16); // 16 }