Class AbstractGeneratorStore<V>

java.lang.Object
org.cloudburstmc.server.level.generator.standard.store.AbstractGeneratorStore<V>
Direct Known Subclasses:
GenerationBiomeStore

public abstract class AbstractGeneratorStore<V> extends Object
Base class for stores used by the Cloudburst standard generator.
Author:
DaPorkchop_
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected net.daporkchop.lib.common.function.io.IOFunction<org.cloudburstmc.api.util.Identifier,​V>
     
    protected Map<org.cloudburstmc.api.util.Identifier,​V>
     
    protected Set<org.cloudburstmc.api.util.Identifier>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract V
    compute​(@NonNull org.cloudburstmc.api.util.Identifier id)
     
    find​(@NonNull org.cloudburstmc.api.util.Identifier id)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • recursionLock

      protected final Set<org.cloudburstmc.api.util.Identifier> recursionLock
    • idToValues

      protected final Map<org.cloudburstmc.api.util.Identifier,​V> idToValues
    • computeFunction

      protected final net.daporkchop.lib.common.function.io.IOFunction<org.cloudburstmc.api.util.Identifier,​V> computeFunction
  • Constructor Details

    • AbstractGeneratorStore

      public AbstractGeneratorStore()
  • Method Details

    • find

      public V find(@NonNull @NonNull org.cloudburstmc.api.util.Identifier id)
    • compute

      protected abstract V compute(@NonNull @NonNull org.cloudburstmc.api.util.Identifier id) throws IOException
      Throws:
      IOException