Class TerrainDoubleCache
java.lang.Object
org.cloudburstmc.server.level.generator.standard.misc.TerrainDoubleCache
- Direct Known Subclasses:
EndDensitySource.IslandCache
- Author:
- DaPorkchop_
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.daporkchop.lib.common.ref.Ref<it.unimi.dsi.fastutil.longs.Long2LongLinkedOpenHashMap>protected static longprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract doublecomputeValue(int x, int z, int radius, int scale)doubleget(int x, int z)
-
Field Details
-
NaN
protected static final long NaN -
cacheCache
protected final net.daporkchop.lib.common.ref.Ref<it.unimi.dsi.fastutil.longs.Long2LongLinkedOpenHashMap> cacheCache -
radius
protected final int radius -
scale
protected final int scale
-
-
Constructor Details
-
TerrainDoubleCache
public TerrainDoubleCache(int radius, int scale)
-
-
Method Details
-
get
public double get(int x, int z) -
computeValue
protected abstract double computeValue(int x, int z, int radius, int scale)
-