Java 类net.minecraft.world.gen.NoiseGeneratorSimplex 实例源码

项目:CustomWorldGen    文件:InitNoiseGensEvent.java   
public ContextEnd(NoiseGeneratorOctaves lperlin1, NoiseGeneratorOctaves lperlin2, NoiseGeneratorOctaves perlin,
        NoiseGeneratorOctaves scale, NoiseGeneratorOctaves depth, NoiseGeneratorSimplex island)
{
    super(lperlin1, lperlin2, perlin, scale, depth);
    this.island = island;
}
项目:McWorldGenLoop    文件:LoopedNoiseGenSimplex2d.java   
private static int getNumOctaves(NoiseGeneratorPerlin noiseGen) {
    Field f = ReflectionUtil.getFieldByType(NoiseGeneratorSimplex[].class, NoiseGeneratorPerlin.class, false);
    if (f == null)
        throw new Error("Field of type NoiseGeneratorSimplex[] not found in class NoiseGeneratorPerlin!");
    return ReflectionUtil.getArrayLength(f, noiseGen);
}
项目:FutureCraft    文件:Noise.java   
/**
 * Creates a new Noise object with the specified seed. When doing 
 * anything related to a world you want to use worldObj.getSeed().
 */
public Noise(long seed) {
    this.simplex = new NoiseGeneratorSimplex(new Random(seed));
}
项目:CustomWorldGen    文件:InitNoiseGensEvent.java   
public NoiseGeneratorSimplex getIsland() { return island;   }
项目:CustomWorldGen    文件:InitNoiseGensEvent.java   
public void getIsland  (NoiseGeneratorSimplex value) { this.island = value; }