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();
}
java类net.minecraft.world.gen.NoiseGeneratorOctaves的实例源码
ColossalBuilder.java 文件源码
项目:Factorization
阅读 21
收藏 0
点赞 0
评论 0
WorldGenColossus.java 文件源码
项目:Factorization
阅读 14
收藏 0
点赞 0
评论 0
@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);
}
}
ChunkProviderGenerateVC.java 文件源码
项目:vintagetg
阅读 26
收藏 0
点赞 0
评论 0
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);
}
ChunkProviderCustomDimension.java 文件源码
项目:Runes-And-Silver
阅读 26
收藏 0
点赞 0
评论 0
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];
}
ChunkProviderRune2.java 文件源码
项目:Runes-And-Silver
阅读 18
收藏 0
点赞 0
评论 0
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];
}
ChunkProviderGenerateVC.java 文件源码
项目:vintagecraft
阅读 18
收藏 0
点赞 0
评论 0
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);
}
ChunkProviderMultiBiome.java 文件源码
项目:FantasyCraft-Mod
阅读 19
收藏 0
点赞 0
评论 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];
}
ChunkProviderOmothol.java 文件源码
项目:AbyssalCraft
阅读 30
收藏 0
点赞 0
评论 0
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];
}
ChunkProviderHeaven.java 文件源码
项目:Rediscovered-Mod-1.6.4
阅读 19
收藏 0
点赞 0
评论 0
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);
}
NyxChunkProvider.java 文件源码
项目:IceAndShadow2
阅读 17
收藏 0
点赞 0
评论 0
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;
}
}
}
ChunkProviderCustomHell.java 文件源码
项目:WuppyMods
阅读 20
收藏 0
点赞 0
评论 0
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];
}
ChunkProviderDesertSector.java 文件源码
项目:CodeLyokoMod
阅读 20
收藏 0
点赞 0
评论 0
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;
// }
// }
}
IceSectorChunkProvider.java 文件源码
项目:CodeLyokoMod
阅读 19
收藏 0
点赞 0
评论 0
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];
}
ChunkProviderEI.java 文件源码
项目:Eldritch-Infusion
阅读 21
收藏 0
点赞 0
评论 0
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];
}
ChunkProviderEI.java 文件源码
项目:Eldritch-Infusion
阅读 19
收藏 0
点赞 0
评论 0
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];
}
AquatanChunkProvider.java 文件源码
项目:Sojourn
阅读 17
收藏 0
点赞 0
评论 0
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];
}
MoltarChunkProvider.java 文件源码
项目:Sojourn
阅读 13
收藏 0
点赞 0
评论 0
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;
}
FungalMarshChunkProvider.java 文件源码
项目:Sojourn
阅读 18
收藏 0
点赞 0
评论 0
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];
}
AracoriaChunkProvider.java 文件源码
项目:Sojourn
阅读 18
收藏 0
点赞 0
评论 0
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);
}
ChunkProviderTerra.java 文件源码
项目:AltEnergy
阅读 20
收藏 0
点赞 0
评论 0
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];
}
ChunkProviderDreamLand.java 文件源码
项目:JLPModJam
阅读 17
收藏 0
点赞 0
评论 0
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];
}
ChunkProviderNightMare.java 文件源码
项目:JLPModJam
阅读 20
收藏 0
点赞 0
评论 0
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];
}
ChunkProviderXthuoth.java 文件源码
项目:Xth-uoth
阅读 15
收藏 0
点赞 0
评论 0
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];
}
OldChunkProviderMarona.java 文件源码
项目:Soul-Forest
阅读 24
收藏 0
点赞 0
评论 0
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];
}
ChunkProviderFrozenHearth.java 文件源码
项目:Soul-Forest
阅读 21
收藏 0
点赞 0
评论 0
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];
}
ChunkProviderSoulForest.java 文件源码
项目:Soul-Forest
阅读 15
收藏 0
点赞 0
评论 0
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];
}
RasterlandChunkProvider.java 文件源码
项目:powell.cellarium
阅读 20
收藏 0
点赞 0
评论 0
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];
}
ChunkProviderVoid.java 文件源码
项目:powell.cellarium
阅读 17
收藏 0
点赞 0
评论 0
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];
}
FirmaChunkGen.java 文件源码
项目:Firma
阅读 25
收藏 0
点赞 0
评论 0
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);
}
ChunkProviderSpaceLakes.java 文件源码
项目:TRAPPIST-1
阅读 29
收藏 0
点赞 0
评论 0
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;
}
}
}