java类net.minecraft.world.gen.NoiseGeneratorOctaves的实例源码

InitNoiseGensEvent.java 文件源码 项目:CustomWorldGen 阅读 20 收藏 0 点赞 0 评论 0
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;
}
InitNoiseGensEvent.java 文件源码 项目:CustomWorldGen 阅读 22 收藏 0 点赞 0 评论 0
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;
}
InitNoiseGensEvent.java 文件源码 项目:CustomWorldGen 阅读 20 收藏 0 点赞 0 评论 0
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;
}
MapGen.java 文件源码 项目:4Space-5 阅读 15 收藏 0 点赞 0 评论 0
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);
}
ChunkProviderAether.java 文件源码 项目:Aether-Legacy 阅读 22 收藏 0 点赞 0 评论 0
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);
}
TeletoryChunkProvider.java 文件源码 项目:TeleToro 阅读 14 收藏 0 点赞 0 评论 0
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();
}
ChunkProviderOcean.java 文件源码 项目:EvilOcean 阅读 25 收藏 0 点赞 0 评论 0
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]);
}
ChunkProviderEpic.java 文件源码 项目:PopularMMOS-EpicProportions-Mod 阅读 25 收藏 0 点赞 0 评论 0
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];
}
EntityLeafBomb.java 文件源码 项目:Factorization 阅读 17 收藏 0 点赞 0 评论 0
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);
}
ChunkProviderUnderworld.java 文件源码 项目:LightningCraft 阅读 15 收藏 0 点赞 0 评论 0
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
}


问题


面经


文章

微信
公众号

扫码关注公众号