本文整理汇总了Java中net.minecraft.world.gen.NoiseGeneratorPerlin类的典型用法代码示例。如果您正苦于以下问题:Java NoiseGeneratorPerlin类的具体用法?Java NoiseGeneratorPerlin怎么用?Java NoiseGeneratorPerlin使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
NoiseGeneratorPerlin类属于net.minecraft.world.gen包,在下文中一共展示了NoiseGeneratorPerlin类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ChunkProviderSpaceLakes
import net.minecraft.world.gen.NoiseGeneratorPerlin; //导入依赖的package包/类
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;
}
}
}
示例2: ContextOverworld
import net.minecraft.world.gen.NoiseGeneratorPerlin; //导入依赖的package包/类
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;
}
示例3: ChunkGeneratorUnderWorld
import net.minecraft.world.gen.NoiseGeneratorPerlin; //导入依赖的package包/类
public ChunkGeneratorUnderWorld(World world, long seed)
{
this.world = world;
RandUtilSeed rand = new RandUtilSeed(seed);
upper = new NoiseGeneratorPerlin(rand.random, 4);
lower = new NoiseGeneratorPerlin(rand.random, 4);
}
示例4: ChunkGeneratorEarth
import net.minecraft.world.gen.NoiseGeneratorPerlin; //导入依赖的package包/类
public ChunkGeneratorEarth(World world, long seed, EarthGenerator earthGenerator, boolean decorate, boolean structures) {
this.world = world;
this.world.setSeaLevel(OCEAN_HEIGHT);
this.random = new Random(seed);
this.earthGenerator = earthGenerator;
this.surfaceNoise = new NoiseGeneratorPerlin(this.random, 4);
this.decorate = decorate;
this.structures = structures;
}
示例5: ChunkProviderOcean
import net.minecraft.world.gen.NoiseGeneratorPerlin; //导入依赖的package包/类
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]);
}
示例6: ChunkProviderEpic
import net.minecraft.world.gen.NoiseGeneratorPerlin; //导入依赖的package包/类
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];
}
示例7: transformNoiseGenerators
import net.minecraft.world.gen.NoiseGeneratorPerlin; //导入依赖的package包/类
public static void transformNoiseGenerators(NoiseGenerator[] oldGen, NoiseGenerator[] newGen, World world) {
int dimId = world.provider.getDimensionId();
logger.info("Replacing noise generator for world " + world.getWorldInfo().getWorldName() + ", dimensionID="
+ dimId);
System.out.println("WorldClass"+world.getClass().getName());
if (oldGen.length != newGen.length) {
throw new IllegalArgumentException("oldGen and newGen lengths are not equal!");
}
for (int i = 0; i < oldGen.length; i++) {
NoiseGenerator noiseGen = oldGen[i];
int loopBits = Config.loopBits(world.provider.getDimensionId());
if (noiseGen instanceof NoiseGeneratorOctaves) {
newGen[i] = new LoopedNoiseGenOctaves((NoiseGeneratorOctaves) noiseGen, world.getSeed() + i, loopBits);
continue;
}
if (noiseGen instanceof NoiseGeneratorPerlin) {
newGen[i] = new LoopedNoiseGenSimplex2d((NoiseGeneratorPerlin) noiseGen, world.getSeed() + i, loopBits);
continue;
}
// other mods?
logger.warn("Unknown noise generator class: "
+ noiseGen.getClass().getName()
+ ", if there are no other mods - it's bug in this mod, if there are other mods - weird things may happen...");
}
}
示例8: ChunkProviderNowhere
import net.minecraft.world.gen.NoiseGeneratorPerlin; //导入依赖的package包/类
public ChunkProviderNowhere(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((float)(j * j + k * k) + 0.2F);
this.parabolicField[j + 2 + (k + 2) * 5] = f;
}
}
NoiseGenerator[] noiseGens = {field_147431_j, field_147432_k, field_147429_l, field_147430_m, noiseGen5, noiseGen6, 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];
}
示例9: ChunkProviderCretaceous
import net.minecraft.world.gen.NoiseGeneratorPerlin; //导入依赖的package包/类
public ChunkProviderCretaceous(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((float)(j * j + k * k) + 0.2F);
this.parabolicField[j + 2 + (k + 2) * 5] = f;
}
}
NoiseGenerator[] noiseGens = {field_147431_j, field_147432_k, field_147429_l, field_147430_m, noiseGen5, noiseGen6, 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];
}
示例10: TDEChunkProvider
import net.minecraft.world.gen.NoiseGeneratorPerlin; //导入依赖的package包/类
public TDEChunkProvider(World par1World, long par2, boolean par4) {
this.worldObj = par1World;
this.mapFeaturesEnabled = par4;
this.worldType = par1World.getWorldInfo().getTerrainType();
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 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.d0 = 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, noiseGen4, noiseGen5, noiseGen6, mobSpawnerNoise };
noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, this.rand, noiseGens);
this.noiseGen1 = (NoiseGeneratorOctaves) noiseGens[0];
this.noiseGen2 = (NoiseGeneratorOctaves) noiseGens[1];
this.noiseGen3 = (NoiseGeneratorOctaves) noiseGens[2];
this.noiseGen4 = (NoiseGeneratorPerlin) noiseGens[3];
this.noiseGen5 = (NoiseGeneratorOctaves) noiseGens[4];
this.noiseGen6 = (NoiseGeneratorOctaves) noiseGens[5];
this.mobSpawnerNoise = (NoiseGeneratorOctaves) noiseGens[6];
}
示例11: ChunkProviderTheDeep
import net.minecraft.world.gen.NoiseGeneratorPerlin; //导入依赖的package包/类
public ChunkProviderTheDeep(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((float)(j * j + k * k) + 0.2F);
this.parabolicField[j + 2 + (k + 2) * 5] = f;
}
}
NoiseGenerator[] noiseGens = {field_147431_j, field_147432_k, field_147429_l, field_147430_m, noiseGen5, noiseGen6, 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];
}
示例12: ChunkProviderAtlantis
import net.minecraft.world.gen.NoiseGeneratorPerlin; //导入依赖的package包/类
public ChunkProviderAtlantis(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((float)(j * j + k * k) + 0.2F);
this.parabolicField[j + 2 + (k + 2) * 5] = f;
}
}
NoiseGenerator[] noiseGens = {field_147431_j, field_147432_k, field_147429_l, field_147430_m, noiseGen5, noiseGen6, 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];
}
示例13: ChunkProviderNillax
import net.minecraft.world.gen.NoiseGeneratorPerlin; //导入依赖的package包/类
public ChunkProviderNillax(World p_i2006_1_, long p_i2006_2_, boolean p_i2006_4_)
{
this.worldObj = p_i2006_1_;
this.mapFeaturesEnabled = p_i2006_4_;
this.field_147435_p = p_i2006_1_.getWorldInfo().getTerrainType();
this.rand = new Random(p_i2006_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;
}
}
NoiseGenerator[] noiseGens = {field_147431_j, field_147432_k, field_147429_l, field_147430_m, noiseGen5, noiseGen6, mobSpawnerNoise};
noiseGens = TerrainGen.getModdedNoiseGenerators(p_i2006_1_, 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];
}
示例14: ChunkProviderDarkax
import net.minecraft.world.gen.NoiseGeneratorPerlin; //导入依赖的package包/类
public ChunkProviderDarkax(World p_i2006_1_, long p_i2006_2_, boolean p_i2006_4_)
{
this.worldObj = p_i2006_1_;
this.mapFeaturesEnabled = p_i2006_4_;
this.field_147435_p = p_i2006_1_.getWorldInfo().getTerrainType();
this.rand = new Random(p_i2006_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;
}
}
NoiseGenerator[] noiseGens = {field_147431_j, field_147432_k, field_147429_l, field_147430_m, noiseGen5, noiseGen6, mobSpawnerNoise};
noiseGens = TerrainGen.getModdedNoiseGenerators(p_i2006_1_, 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];
}
示例15: ChunkProviderFloodgate
import net.minecraft.world.gen.NoiseGeneratorPerlin; //导入依赖的package包/类
public ChunkProviderFloodgate(World p_i2006_1_, long p_i2006_2_, boolean p_i2006_4_)
{
this.worldObj = p_i2006_1_;
this.mapFeaturesEnabled = p_i2006_4_;
this.field_147435_p = p_i2006_1_.getWorldInfo().getTerrainType();
this.rand = new Random(p_i2006_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;
}
}
NoiseGenerator[] noiseGens = {field_147431_j, field_147432_k, field_147429_l, field_147430_m, noiseGen5, noiseGen6, mobSpawnerNoise};
noiseGens = TerrainGen.getModdedNoiseGenerators(p_i2006_1_, 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];
}