Class TerrainPreview
java.lang.Object
com.google.common.cache.CacheLoader<TilePos,CompletableFuture<BufferedImage>>
net.buildtheearth.terraminusminus.generator.TerrainPreview
public class TerrainPreview
extends com.google.common.cache.CacheLoader<TilePos,CompletableFuture<BufferedImage>>
-
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
FieldsModifier and TypeFieldDescriptionprotected final com.google.common.cache.LoadingCache<TilePos, CompletableFuture<BufferedImage>> protected static final intprotected static final intprotected final ChunkDataLoaderstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionTerrainPreview(@NonNull EarthGeneratorSettings settings) TerrainPreview(@NonNull EarthGeneratorSettings settings, @NonNull String cacheSpec) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture<BufferedImage> baseZoomTile(int x, int z) static BufferedImageDeprecated.internal API, do not touch!static voidtile(int x, int z, int zoom) protected CompletableFuture<BufferedImage> zoomedInTile(int x, int z, int zoom) protected CompletableFuture<BufferedImage> zoomedOutTile(int x, int z, int zoom) Methods inherited from class com.google.common.cache.CacheLoader
asyncReloading, from, from, loadAll, reload
-
Field Details
-
SIZE_SHIFT
public static final int SIZE_SHIFT- See Also:
-
SIZE
public static final int SIZE- See Also:
-
CHUNKS_PER_TILE_SHIFT
protected static final int CHUNKS_PER_TILE_SHIFT- See Also:
-
CHUNKS_PER_TILE
protected static final int CHUNKS_PER_TILE- See Also:
-
cache
protected final com.google.common.cache.LoadingCache<TilePos,CompletableFuture<BufferedImage>> cache -
loader
-
-
Constructor Details
-
TerrainPreview
-
TerrainPreview
public TerrainPreview(@NonNull @NonNull EarthGeneratorSettings settings, @NonNull @NonNull String cacheSpec)
-
-
Method Details
-
createBlankTile
-
main
- Throws:
OutOfProjectionBoundsException
-
tile
-
tile
-
load
Deprecated.internal API, do not touch!- Specified by:
loadin classcom.google.common.cache.CacheLoader<TilePos,CompletableFuture<BufferedImage>>
-
baseZoomTile
-
zoomedOutTile
-
zoomedInTile
-