static class BlockPattern.BlockStateCacheLoader extends CacheLoader<BlockPos,CachedBlockPosition>
CacheLoader.InvalidCacheLoadException, CacheLoader.UnsupportedLoadingOperationException
Modifier and Type | Field and Description |
---|---|
private boolean |
forceLoad |
private WorldView |
world |
Constructor and Description |
---|
BlockStateCacheLoader(WorldView world,
boolean forceLoad) |
Modifier and Type | Method and Description |
---|---|
CachedBlockPosition |
load(BlockPos blockPos) |
asyncReloading, from, from, loadAll, reload
private final WorldView world
private final boolean forceLoad
public BlockStateCacheLoader(WorldView world, boolean forceLoad)
public CachedBlockPosition load(BlockPos blockPos) throws Exception
load
in class CacheLoader<BlockPos,CachedBlockPosition>
Exception