Class TerrainDoubleCache

java.lang.Object
org.cloudburstmc.server.level.generator.standard.misc.TerrainDoubleCache
Direct Known Subclasses:
EndDensitySource.IslandCache

public abstract class TerrainDoubleCache extends Object
Author:
DaPorkchop_
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected net.daporkchop.lib.common.ref.Ref<it.unimi.dsi.fastutil.longs.Long2LongLinkedOpenHashMap>
     
    protected static long
     
    protected int
     
    protected int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    TerrainDoubleCache​(int radius, int scale)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract double
    computeValue​(int x, int z, int radius, int scale)
     
    double
    get​(int x, int z)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)