Class EndDensitySource.IslandCache
java.lang.Object
org.cloudburstmc.server.level.generator.standard.misc.TerrainDoubleCache
org.cloudburstmc.server.level.generator.standard.generation.density.EndDensitySource.IslandCache
- Enclosing class:
- EndDensitySource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.daporkchop.lib.noise.NoiseSourceprotected NoiseGeneratorprotected doubleprotected NoiseGeneratorprotected doubleprotected doubleprotected net.daporkchop.lib.noise.NoiseSourceFields inherited from class org.cloudburstmc.server.level.generator.standard.misc.TerrainDoubleCache
cacheCache, NaN, radius, scale -
Constructor Summary
ConstructorsConstructorDescriptionIslandCache(int radius, double islandRadius, double outerIslandStartRadius, double outerIslandSeedThreshold, NoiseGenerator islandNoise, NoiseGenerator islandWeight) -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecomputeValue(int x, int z, int radius, int scale)protected voidinit(@NonNull net.daporkchop.lib.random.PRandom random)Methods inherited from class org.cloudburstmc.server.level.generator.standard.misc.TerrainDoubleCache
get
-
Field Details
-
island
protected net.daporkchop.lib.noise.NoiseSource island -
weight
protected net.daporkchop.lib.noise.NoiseSource weight -
islandRadius
protected double islandRadius -
outerIslandStartRadiusSq
protected double outerIslandStartRadiusSq -
outerIslandSeedThreshold
protected double outerIslandSeedThreshold -
islandNoise
-
islandWeight
-
-
Constructor Details
-
IslandCache
public IslandCache(int radius, double islandRadius, double outerIslandStartRadius, double outerIslandSeedThreshold, NoiseGenerator islandNoise, NoiseGenerator islandWeight)
-
-
Method Details
-
init
protected void init(@NonNull @NonNull net.daporkchop.lib.random.PRandom random) -
computeValue
protected double computeValue(int x, int z, int radius, int scale)- Specified by:
computeValuein classTerrainDoubleCache
-