public ContextEnd(NoiseGeneratorOctaves lperlin1, NoiseGeneratorOctaves lperlin2, NoiseGeneratorOctaves perlin, NoiseGeneratorOctaves scale, NoiseGeneratorOctaves depth, NoiseGeneratorSimplex island) { super(lperlin1, lperlin2, perlin, scale, depth); this.island = island; }
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); }
/** * 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)); }
public NoiseGeneratorSimplex getIsland() { return island; }
public void getIsland (NoiseGeneratorSimplex value) { this.island = value; }