public GenLayerBiome(long p_i45560_1_, GenLayer p_i45560_3_, WorldType p_i45560_4_, String p_i45560_5_) { super(p_i45560_1_); this.parent = p_i45560_3_; if (p_i45560_4_ == WorldType.DEFAULT_1_1) { this.field_151623_c = new BiomeGenBase[] {BiomeGenBase.desert, BiomeGenBase.forest, BiomeGenBase.extremeHills, BiomeGenBase.swampland, BiomeGenBase.plains, BiomeGenBase.taiga}; this.field_175973_g = null; } else if (p_i45560_4_ == WorldType.CUSTOMIZED) { this.field_175973_g = ChunkProviderSettings.Factory.jsonToFactory(p_i45560_5_).func_177864_b(); } else { this.field_175973_g = null; } }
public void decorate(World worldIn, Random random, Biome biome, BlockPos pos) { if (this.decorating) { throw new RuntimeException("Already decorating"); } else { this.chunkProviderSettings = ChunkProviderSettings.Factory.jsonToFactory(worldIn.getWorldInfo().getGeneratorOptions()).build(); this.chunkPos = pos; this.dirtGen = new WorldGenMinable(Blocks.DIRT.getDefaultState(), this.chunkProviderSettings.dirtSize); this.gravelGen = new WorldGenMinable(Blocks.GRAVEL.getDefaultState(), this.chunkProviderSettings.gravelSize); this.graniteGen = new WorldGenMinable(Blocks.STONE.getDefaultState().withProperty(BlockStone.VARIANT, BlockStone.EnumType.GRANITE), this.chunkProviderSettings.graniteSize); this.dioriteGen = new WorldGenMinable(Blocks.STONE.getDefaultState().withProperty(BlockStone.VARIANT, BlockStone.EnumType.DIORITE), this.chunkProviderSettings.dioriteSize); this.andesiteGen = new WorldGenMinable(Blocks.STONE.getDefaultState().withProperty(BlockStone.VARIANT, BlockStone.EnumType.ANDESITE), this.chunkProviderSettings.andesiteSize); this.coalGen = new WorldGenMinable(Blocks.COAL_ORE.getDefaultState(), this.chunkProviderSettings.coalSize); this.ironGen = new WorldGenMinable(Blocks.IRON_ORE.getDefaultState(), this.chunkProviderSettings.ironSize); this.goldGen = new WorldGenMinable(Blocks.GOLD_ORE.getDefaultState(), this.chunkProviderSettings.goldSize); this.redstoneGen = new WorldGenMinable(Blocks.REDSTONE_ORE.getDefaultState(), this.chunkProviderSettings.redstoneSize); this.diamondGen = new WorldGenMinable(Blocks.DIAMOND_ORE.getDefaultState(), this.chunkProviderSettings.diamondSize); this.lapisGen = new WorldGenMinable(Blocks.LAPIS_ORE.getDefaultState(), this.chunkProviderSettings.lapisSize); this.genDecorations(biome, worldIn, random); this.decorating = false; } }
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 void decorate(World worldIn, Random random, BiomeGenBase p_180292_3_, BlockPos p_180292_4_) { if (this.currentWorld != null) { throw new RuntimeException("Already decorating"); } else { this.currentWorld = worldIn; String s = worldIn.getWorldInfo().getGeneratorOptions(); if (s != null) { this.chunkProviderSettings = ChunkProviderSettings.Factory.jsonToFactory(s).func_177864_b(); } else { this.chunkProviderSettings = ChunkProviderSettings.Factory.jsonToFactory("").func_177864_b(); } this.randomGenerator = random; this.field_180294_c = p_180292_4_; this.dirtGen = new WorldGenMinable(Blocks.dirt.getDefaultState(), this.chunkProviderSettings.dirtSize); this.gravelGen = new WorldGenMinable(Blocks.gravel.getDefaultState(), this.chunkProviderSettings.gravelSize); this.graniteGen = new WorldGenMinable(Blocks.stone.getDefaultState().withProperty(BlockStone.VARIANT, BlockStone.EnumType.GRANITE), this.chunkProviderSettings.graniteSize); this.dioriteGen = new WorldGenMinable(Blocks.stone.getDefaultState().withProperty(BlockStone.VARIANT, BlockStone.EnumType.DIORITE), this.chunkProviderSettings.dioriteSize); this.andesiteGen = new WorldGenMinable(Blocks.stone.getDefaultState().withProperty(BlockStone.VARIANT, BlockStone.EnumType.ANDESITE), this.chunkProviderSettings.andesiteSize); this.coalGen = new WorldGenMinable(Blocks.coal_ore.getDefaultState(), this.chunkProviderSettings.coalSize); this.ironGen = new WorldGenMinable(Blocks.iron_ore.getDefaultState(), this.chunkProviderSettings.ironSize); this.goldGen = new WorldGenMinable(Blocks.gold_ore.getDefaultState(), this.chunkProviderSettings.goldSize); this.redstoneGen = new WorldGenMinable(Blocks.redstone_ore.getDefaultState(), this.chunkProviderSettings.redstoneSize); this.diamondGen = new WorldGenMinable(Blocks.diamond_ore.getDefaultState(), this.chunkProviderSettings.diamondSize); this.lapisGen = new WorldGenMinable(Blocks.lapis_ore.getDefaultState(), this.chunkProviderSettings.lapisSize); this.genDecorations(p_180292_3_); this.currentWorld = null; this.randomGenerator = null; } }
public void func_175324_a(String p_175324_1_) { if (p_175324_1_ != null && p_175324_1_.length() != 0) { this.field_175336_F = ChunkProviderSettings.Factory.jsonToFactory(p_175324_1_); } else { this.field_175336_F = new ChunkProviderSettings.Factory(); } }
private BiomeProvider(long seed, WorldType worldTypeIn, String options) { this(); if (worldTypeIn == WorldType.CUSTOMIZED && !options.isEmpty()) { this.field_190945_a = ChunkProviderSettings.Factory.jsonToFactory(options).build(); } GenLayer[] agenlayer = GenLayer.initializeAllBiomeGenerators(seed, worldTypeIn, this.field_190945_a); this.genBiomes = agenlayer[0]; this.biomeIndexLayer = agenlayer[1]; }
public GenLayerBiome(long p_i45560_1_, GenLayer p_i45560_3_, WorldType p_i45560_4_, ChunkProviderSettings p_i45560_5_) { super(p_i45560_1_); this.parent = p_i45560_3_; if (p_i45560_4_ == WorldType.DEFAULT_1_1) { this.warmBiomes = new Biome[] {Biomes.DESERT, Biomes.FOREST, Biomes.EXTREME_HILLS, Biomes.SWAMPLAND, Biomes.PLAINS, Biomes.TAIGA}; this.settings = null; } else { this.settings = p_i45560_5_; } }
public void loadValues(String p_175324_1_) { if (p_175324_1_ != null && !p_175324_1_.isEmpty()) { this.settings = ChunkProviderSettings.Factory.jsonToFactory(p_175324_1_); } else { this.settings = new ChunkProviderSettings.Factory(); } }
public GenLayerBiome(long p_i45560_1_, GenLayer p_i45560_3_, WorldType p_i45560_4_, String p_i45560_5_) { super(p_i45560_1_); this.parent = p_i45560_3_; for (net.minecraftforge.common.BiomeManager.BiomeType type : net.minecraftforge.common.BiomeManager.BiomeType.values()) { com.google.common.collect.ImmutableList<net.minecraftforge.common.BiomeManager.BiomeEntry> biomesToAdd = net.minecraftforge.common.BiomeManager.getBiomes(type); int idx = type.ordinal(); if (biomes[idx] == null) biomes[idx] = new java.util.ArrayList<net.minecraftforge.common.BiomeManager.BiomeEntry>(); if (biomesToAdd != null) biomes[idx].addAll(biomesToAdd); } int desertIdx = net.minecraftforge.common.BiomeManager.BiomeType.DESERT.ordinal(); biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.DESERT, 30)); biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.SAVANNA, 20)); biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.PLAINS, 10)); if (p_i45560_4_ == WorldType.DEFAULT_1_1) { biomes[desertIdx].clear(); biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.DESERT, 10)); biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.FOREST, 10)); biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.EXTREME_HILLS, 10)); biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.SWAMPLAND, 10)); biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.PLAINS, 10)); biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.TAIGA, 10)); this.settings = null; } else if (p_i45560_4_ == WorldType.CUSTOMIZED) { this.settings = ChunkProviderSettings.Factory.jsonToFactory(p_i45560_5_).build(); } else { this.settings = null; } }
public BiomeTileable(GenLayerBiome originalLayer) { super(0, null, null, null); ReflectionUtil.copyNonStaticFieldsByType(GenLayer.class, long.class, originalLayer, this); ReflectionUtil.copyNonStaticFieldsByType(GenLayer.class, GenLayer.class, originalLayer, this); ReflectionUtil.copyNonStaticFieldsByType(GenLayerBiome.class, List[].class, originalLayer, this); ReflectionUtil.copyNonStaticFieldsByType(GenLayerBiome.class, ChunkProviderSettings.class, originalLayer, this); this.parent = GenLayerTileableUtil.getTileableLayer(this.parent); }
public static GenLayer[] initializeAllBiomeGenerators(long seed, WorldType p_180781_2_, String p_180781_3_) { GenLayer genlayer = new GenLayerIsland(1L); genlayer = new GenLayerFuzzyZoom(2000L, genlayer); GenLayerAddIsland genlayeraddisland = new GenLayerAddIsland(1L, genlayer); GenLayerZoom genlayerzoom = new GenLayerZoom(2001L, genlayeraddisland); GenLayerAddIsland genlayeraddisland1 = new GenLayerAddIsland(2L, genlayerzoom); genlayeraddisland1 = new GenLayerAddIsland(50L, genlayeraddisland1); genlayeraddisland1 = new GenLayerAddIsland(70L, genlayeraddisland1); GenLayerRemoveTooMuchOcean genlayerremovetoomuchocean = new GenLayerRemoveTooMuchOcean(2L, genlayeraddisland1); GenLayerAddSnow genlayeraddsnow = new GenLayerAddSnow(2L, genlayerremovetoomuchocean); GenLayerAddIsland genlayeraddisland2 = new GenLayerAddIsland(3L, genlayeraddsnow); GenLayerEdge genlayeredge = new GenLayerEdge(2L, genlayeraddisland2, GenLayerEdge.Mode.COOL_WARM); genlayeredge = new GenLayerEdge(2L, genlayeredge, GenLayerEdge.Mode.HEAT_ICE); genlayeredge = new GenLayerEdge(3L, genlayeredge, GenLayerEdge.Mode.SPECIAL); GenLayerZoom genlayerzoom1 = new GenLayerZoom(2002L, genlayeredge); genlayerzoom1 = new GenLayerZoom(2003L, genlayerzoom1); GenLayerAddIsland genlayeraddisland3 = new GenLayerAddIsland(4L, genlayerzoom1); GenLayerAddMushroomIsland genlayeraddmushroomisland = new GenLayerAddMushroomIsland(5L, genlayeraddisland3); GenLayerDeepOcean genlayerdeepocean = new GenLayerDeepOcean(4L, genlayeraddmushroomisland); GenLayer genlayer4 = GenLayerZoom.magnify(1000L, genlayerdeepocean, 0); ChunkProviderSettings chunkprovidersettings = null; int i = 4; int j = i; if (p_180781_2_ == WorldType.CUSTOMIZED && p_180781_3_.length() > 0) { chunkprovidersettings = ChunkProviderSettings.Factory.jsonToFactory(p_180781_3_).func_177864_b(); i = chunkprovidersettings.biomeSize; j = chunkprovidersettings.riverSize; } if (p_180781_2_ == WorldType.LARGE_BIOMES) { i = 6; } GenLayer lvt_8_1_ = GenLayerZoom.magnify(1000L, genlayer4, 0); GenLayerRiverInit genlayerriverinit = new GenLayerRiverInit(100L, lvt_8_1_); GenLayerBiome lvt_9_1_ = new GenLayerBiome(200L, genlayer4, p_180781_2_, p_180781_3_); GenLayer genlayer6 = GenLayerZoom.magnify(1000L, lvt_9_1_, 2); GenLayerBiomeEdge genlayerbiomeedge = new GenLayerBiomeEdge(1000L, genlayer6); GenLayer lvt_10_1_ = GenLayerZoom.magnify(1000L, genlayerriverinit, 2); GenLayer genlayerhills = new GenLayerHills(1000L, genlayerbiomeedge, lvt_10_1_); GenLayer genlayer5 = GenLayerZoom.magnify(1000L, genlayerriverinit, 2); genlayer5 = GenLayerZoom.magnify(1000L, genlayer5, j); GenLayerRiver genlayerriver = new GenLayerRiver(1L, genlayer5); GenLayerSmooth genlayersmooth = new GenLayerSmooth(1000L, genlayerriver); genlayerhills = new GenLayerRareBiome(1001L, genlayerhills); for (int k = 0; k < i; ++k) { genlayerhills = new GenLayerZoom((long)(1000 + k), genlayerhills); if (k == 0) { genlayerhills = new GenLayerAddIsland(3L, genlayerhills); } if (k == 1 || i == 1) { genlayerhills = new GenLayerShore(1000L, genlayerhills); } } GenLayerSmooth genlayersmooth1 = new GenLayerSmooth(1000L, genlayerhills); GenLayerRiverMix genlayerrivermix = new GenLayerRiverMix(100L, genlayersmooth1, genlayersmooth); GenLayer genlayer3 = new GenLayerVoronoiZoom(10L, genlayerrivermix); genlayerrivermix.initWorldGenSeed(seed); genlayer3.initWorldGenSeed(seed); return new GenLayer[] {genlayerrivermix, genlayer3, genlayerrivermix}; }
public Info(String p_i45523_1_, ResourceLocation p_i45523_2_, ChunkProviderSettings.Factory p_i45523_3_) { this.field_178955_a = p_i45523_1_; this.field_178953_b = p_i45523_2_; this.field_178954_c = p_i45523_3_; }
public static GenLayer[] initializeAllBiomeGenerators(long seed, WorldType p_180781_2_, ChunkProviderSettings p_180781_3_) { GenLayer genlayer = new GenLayerIsland(1L); genlayer = new GenLayerFuzzyZoom(2000L, genlayer); GenLayerAddIsland genlayeraddisland = new GenLayerAddIsland(1L, genlayer); GenLayerZoom genlayerzoom = new GenLayerZoom(2001L, genlayeraddisland); GenLayerAddIsland genlayeraddisland1 = new GenLayerAddIsland(2L, genlayerzoom); genlayeraddisland1 = new GenLayerAddIsland(50L, genlayeraddisland1); genlayeraddisland1 = new GenLayerAddIsland(70L, genlayeraddisland1); GenLayerRemoveTooMuchOcean genlayerremovetoomuchocean = new GenLayerRemoveTooMuchOcean(2L, genlayeraddisland1); GenLayerAddSnow genlayeraddsnow = new GenLayerAddSnow(2L, genlayerremovetoomuchocean); GenLayerAddIsland genlayeraddisland2 = new GenLayerAddIsland(3L, genlayeraddsnow); GenLayerEdge genlayeredge = new GenLayerEdge(2L, genlayeraddisland2, GenLayerEdge.Mode.COOL_WARM); genlayeredge = new GenLayerEdge(2L, genlayeredge, GenLayerEdge.Mode.HEAT_ICE); genlayeredge = new GenLayerEdge(3L, genlayeredge, GenLayerEdge.Mode.SPECIAL); GenLayerZoom genlayerzoom1 = new GenLayerZoom(2002L, genlayeredge); genlayerzoom1 = new GenLayerZoom(2003L, genlayerzoom1); GenLayerAddIsland genlayeraddisland3 = new GenLayerAddIsland(4L, genlayerzoom1); GenLayerAddMushroomIsland genlayeraddmushroomisland = new GenLayerAddMushroomIsland(5L, genlayeraddisland3); GenLayerDeepOcean genlayerdeepocean = new GenLayerDeepOcean(4L, genlayeraddmushroomisland); GenLayer genlayer4 = GenLayerZoom.magnify(1000L, genlayerdeepocean, 0); int i = 4; int j = i; if (p_180781_3_ != null) { i = p_180781_3_.biomeSize; j = p_180781_3_.riverSize; } if (p_180781_2_ == WorldType.LARGE_BIOMES) { i = 6; } GenLayer lvt_7_1_ = GenLayerZoom.magnify(1000L, genlayer4, 0); GenLayerRiverInit genlayerriverinit = new GenLayerRiverInit(100L, lvt_7_1_); GenLayerBiome lvt_8_1_ = new GenLayerBiome(200L, genlayer4, p_180781_2_, p_180781_3_); GenLayer genlayer6 = GenLayerZoom.magnify(1000L, lvt_8_1_, 2); GenLayerBiomeEdge genlayerbiomeedge = new GenLayerBiomeEdge(1000L, genlayer6); GenLayer lvt_9_1_ = GenLayerZoom.magnify(1000L, genlayerriverinit, 2); GenLayer genlayerhills = new GenLayerHills(1000L, genlayerbiomeedge, lvt_9_1_); GenLayer genlayer5 = GenLayerZoom.magnify(1000L, genlayerriverinit, 2); genlayer5 = GenLayerZoom.magnify(1000L, genlayer5, j); GenLayerRiver genlayerriver = new GenLayerRiver(1L, genlayer5); GenLayerSmooth genlayersmooth = new GenLayerSmooth(1000L, genlayerriver); genlayerhills = new GenLayerRareBiome(1001L, genlayerhills); for (int k = 0; k < i; ++k) { genlayerhills = new GenLayerZoom((long)(1000 + k), genlayerhills); if (k == 0) { genlayerhills = new GenLayerAddIsland(3L, genlayerhills); } if (k == 1 || i == 1) { genlayerhills = new GenLayerShore(1000L, genlayerhills); } } GenLayerSmooth genlayersmooth1 = new GenLayerSmooth(1000L, genlayerhills); GenLayerRiverMix genlayerrivermix = new GenLayerRiverMix(100L, genlayersmooth1, genlayersmooth); GenLayer genlayer3 = new GenLayerVoronoiZoom(10L, genlayerrivermix); genlayerrivermix.initWorldGenSeed(seed); genlayer3.initWorldGenSeed(seed); return new GenLayer[] {genlayerrivermix, genlayer3, genlayerrivermix}; }
public Info(String nameIn, ResourceLocation textureIn, ChunkProviderSettings.Factory settingsIn) { this.name = nameIn; this.texture = textureIn; this.settings = settingsIn; }
public static GenLayer[] initializeAllBiomeGenerators(long seed, WorldType p_180781_2_, String p_180781_3_) { GenLayer genlayer = new GenLayerIsland(1L); genlayer = new GenLayerFuzzyZoom(2000L, genlayer); GenLayerAddIsland genlayeraddisland = new GenLayerAddIsland(1L, genlayer); GenLayerZoom genlayerzoom = new GenLayerZoom(2001L, genlayeraddisland); GenLayerAddIsland genlayeraddisland1 = new GenLayerAddIsland(2L, genlayerzoom); genlayeraddisland1 = new GenLayerAddIsland(50L, genlayeraddisland1); genlayeraddisland1 = new GenLayerAddIsland(70L, genlayeraddisland1); GenLayerRemoveTooMuchOcean genlayerremovetoomuchocean = new GenLayerRemoveTooMuchOcean(2L, genlayeraddisland1); GenLayerAddSnow genlayeraddsnow = new GenLayerAddSnow(2L, genlayerremovetoomuchocean); GenLayerAddIsland genlayeraddisland2 = new GenLayerAddIsland(3L, genlayeraddsnow); GenLayerEdge genlayeredge = new GenLayerEdge(2L, genlayeraddisland2, GenLayerEdge.Mode.COOL_WARM); genlayeredge = new GenLayerEdge(2L, genlayeredge, GenLayerEdge.Mode.HEAT_ICE); genlayeredge = new GenLayerEdge(3L, genlayeredge, GenLayerEdge.Mode.SPECIAL); GenLayerZoom genlayerzoom1 = new GenLayerZoom(2002L, genlayeredge); genlayerzoom1 = new GenLayerZoom(2003L, genlayerzoom1); GenLayerAddIsland genlayeraddisland3 = new GenLayerAddIsland(4L, genlayerzoom1); GenLayerAddMushroomIsland genlayeraddmushroomisland = new GenLayerAddMushroomIsland(5L, genlayeraddisland3); GenLayerDeepOcean genlayerdeepocean = new GenLayerDeepOcean(4L, genlayeraddmushroomisland); GenLayer genlayer4 = GenLayerZoom.magnify(1000L, genlayerdeepocean, 0); int i = 4; int j = i; if (p_180781_2_ == WorldType.CUSTOMIZED && !p_180781_3_.isEmpty()) { ChunkProviderSettings chunkprovidersettings = ChunkProviderSettings.Factory.jsonToFactory(p_180781_3_).build(); i = chunkprovidersettings.biomeSize; j = chunkprovidersettings.riverSize; } if (p_180781_2_ == WorldType.LARGE_BIOMES) { i = 6; } i = getModdedBiomeSize(p_180781_2_, i); GenLayer lvt_8_1_ = GenLayerZoom.magnify(1000L, genlayer4, 0); GenLayerRiverInit genlayerriverinit = new GenLayerRiverInit(100L, lvt_8_1_); GenLayer lvt_10_1_ = GenLayerZoom.magnify(1000L, genlayerriverinit, 2); GenLayer genlayerbiomeedge = p_180781_2_.getBiomeLayer(seed, genlayer4, p_180781_3_); GenLayer genlayerhills = new GenLayerHills(1000L, genlayerbiomeedge, lvt_10_1_); GenLayer genlayer5 = GenLayerZoom.magnify(1000L, genlayerriverinit, 2); genlayer5 = GenLayerZoom.magnify(1000L, genlayer5, j); GenLayerRiver genlayerriver = new GenLayerRiver(1L, genlayer5); GenLayerSmooth genlayersmooth = new GenLayerSmooth(1000L, genlayerriver); genlayerhills = new GenLayerRareBiome(1001L, genlayerhills); for (int k = 0; k < i; ++k) { genlayerhills = new GenLayerZoom((long)(1000 + k), genlayerhills); if (k == 0) { genlayerhills = new GenLayerAddIsland(3L, genlayerhills); } if (k == 1 || i == 1) { genlayerhills = new GenLayerShore(1000L, genlayerhills); } } GenLayerSmooth genlayersmooth1 = new GenLayerSmooth(1000L, genlayerhills); GenLayerRiverMix genlayerrivermix = new GenLayerRiverMix(100L, genlayersmooth1, genlayersmooth); GenLayer genlayer3 = new GenLayerVoronoiZoom(10L, genlayerrivermix); genlayerrivermix.initWorldGenSeed(seed); genlayer3.initWorldGenSeed(seed); return new GenLayer[] {genlayerrivermix, genlayer3, genlayerrivermix}; }
public ChunkProviderNillax(World worldIn, long p_i45636_2_, boolean p_i45636_4_, String p_i45636_5_) { this.field_177476_s = Blocks.water; this.stoneNoise = new double[256]; this.caveGenerator = new MapGenCaves(); //this.strongholdGenerator = new MapGenStronghold(); this.villageGenerator = new MapGenNileVillage(); this.mineshaftGenerator = new MapGenMineshaft(); this.scatteredFeatureGenerator = new MapGenScatteredFeature(); this.ravineGenerator = new MapGenRavine(); //this.oceanMonumentGenerator = new StructureOceanMonument(); this.worldObj = worldIn; this.mapFeaturesEnabled = p_i45636_4_; this.field_177475_o = worldIn.getWorldInfo().getTerrainType(); this.rand = new Random(p_i45636_2_); 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((float)(j * j + k * k) + 0.2F); this.parabolicField[j + 2 + (k + 2) * 5] = f; } } if (p_i45636_5_ != null) { this.settings = ChunkProviderSettings.Factory.jsonToFactory(p_i45636_5_).func_177864_b(); this.field_177476_s = this.settings.useLavaOceans ? Blocks.lava : Blocks.water; } NoiseGenerator[] noiseGens = {field_147431_j, field_147432_k, field_147429_l, field_147430_m, noiseGen5, noiseGen6, mobSpawnerNoise}; noiseGens = TerrainGen.getModdedNoiseGenerators(worldIn, 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 ChunkProviderDarkax(World worldIn, long p_i45636_2_, boolean p_i45636_4_, String p_i45636_5_) { this.field_177476_s = Blocks.lava; this.stoneNoise = new double[256]; this.caveGenerator = new MapGenCaves(); //this.strongholdGenerator = new MapGenStronghold(); this.villageGenerator = new MapGenNileVillage(); this.mineshaftGenerator = new MapGenMineshaft(); this.scatteredFeatureGenerator = new MapGenScatteredFeature(); this.ravineGenerator = new MapGenRavine(); //this.oceanMonumentGenerator = new StructureOceanMonument(); this.worldObj = worldIn; this.mapFeaturesEnabled = p_i45636_4_; this.field_177475_o = worldIn.getWorldInfo().getTerrainType(); this.rand = new Random(p_i45636_2_); 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((float)(j * j + k * k) + 0.2F); this.parabolicField[j + 2 + (k + 2) * 5] = f; } } if (p_i45636_5_ != null) { this.settings = ChunkProviderSettings.Factory.jsonToFactory(p_i45636_5_).func_177864_b(); this.field_177476_s = this.settings.useLavaOceans ? Blocks.lava : Blocks.lava; } NoiseGenerator[] noiseGens = {field_147431_j, field_147432_k, field_147429_l, field_147430_m, noiseGen5, noiseGen6, mobSpawnerNoise}; noiseGens = TerrainGen.getModdedNoiseGenerators(worldIn, 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]; }