Class TiledHttpDataset<T>

java.lang.Object
com.google.common.cache.CacheLoader<net.buildtheearth.terracore.geo.TileLocation,CompletableFuture<T>>
net.buildtheearth.terracore.worldgen.dataset.Dataset<net.buildtheearth.terracore.geo.TileLocation,T>
net.buildtheearth.terracore.worldgen.dataset.TiledDataset<T>
net.buildtheearth.terracore.worldgen.dataset.TiledHttpDataset<T>
All Implemented Interfaces:
IDataset<net.buildtheearth.terracore.geo.TileLocation,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.terracore.worldgen.dataset.TiledDataset

    projection, tileSize

    Fields inherited from class net.buildtheearth.terracore.worldgen.dataset.Dataset

    cache
  • Constructor Summary

    Constructors
    Constructor
    Description
    TiledHttpDataset(@NonNull net.buildtheearth.terracore.geo.projection.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 net.buildtheearth.terracore.geo.TileLocation pos)
     
    protected abstract String[]
    urls(int tileX, int tileZ)
     

    Methods inherited from class net.buildtheearth.terracore.worldgen.dataset.TiledDataset

    projection, tileSize

    Methods inherited from class net.buildtheearth.terracore.worldgen.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 net.buildtheearth.terracore.geo.projection.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 net.buildtheearth.terracore.geo.TileLocation pos) throws Exception
      Specified by:
      load in class Dataset<net.buildtheearth.terracore.geo.TileLocation,T>
      Throws:
      Exception