Class TiledHttpDataset<T>

java.lang.Object
com.google.common.cache.CacheLoader<ChunkPos,CompletableFuture<T>>
All Implemented Interfaces:
IDataset<ChunkPos,T>
Direct Known Subclasses:
DoubleTiledDataset

public abstract class TiledHttpDataset<T> extends TiledDataset<T>
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.google.common.cache.CacheLoader

    com.google.common.cache.CacheLoader.InvalidCacheLoadException, com.google.common.cache.CacheLoader.UnsupportedLoadingOperationException
  • Field Summary

    Fields inherited from class net.buildtheearth.terraminusminus.dataset.TiledDataset

    projection, tileSize

    Fields inherited from class net.buildtheearth.terraminusminus.dataset.Dataset

    cache
  • Constructor Summary

    Constructors
    Constructor
    Description
    TiledHttpDataset(@NonNull GeographicProjection projection, double tileSize)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addProperties(int tileX, int tileZ, com.google.common.collect.ImmutableMap.Builder<String,String> builder)
     
    protected abstract T
    decode(int tileX, int tileZ, @NonNull io.netty.buffer.ByteBuf data)
     
    load(@NonNull ChunkPos pos)
     
    protected abstract String[]
    urls(int tileX, int tileZ)
     

    Methods inherited from class net.buildtheearth.terraminusminus.dataset.TiledDataset

    projection, tileSize

    Methods inherited from class net.buildtheearth.terraminusminus.dataset.Dataset

    getAsync

    Methods inherited from class com.google.common.cache.CacheLoader

    asyncReloading, from, from, loadAll, reload

    Methods inherited from class java.lang.Object

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

    • TiledHttpDataset

      public TiledHttpDataset(@NonNull @NonNull GeographicProjection projection, double tileSize)
  • Method Details

    • urls

      protected abstract String[] urls(int tileX, int tileZ)
    • addProperties

      protected void addProperties(int tileX, int tileZ, @NonNull com.google.common.collect.ImmutableMap.Builder<String,String> builder)
    • decode

      protected abstract T decode(int tileX, int tileZ, @NonNull @NonNull io.netty.buffer.ByteBuf data) throws Exception
      Throws:
      Exception
    • load

      public CompletableFuture<T> load(@NonNull @NonNull ChunkPos pos) throws Exception
      Specified by:
      load in class Dataset<ChunkPos,T>
      Throws:
      Exception