BlockApiCacheImpl

public final class BlockApiCacheImpl<A, C> implements BlockApiCache<A, C>

Constructors

BlockApiCacheImpl
Link copied to clipboard
void BlockApiCacheImpl(BlockApiLookupImpl<A, C> lookup, ServerWorld world, BlockPos pos)

Functions

create
Link copied to clipboard
static BlockApiCache<A, Ccreate<A, C>(BlockApiLookup<A, C> lookup, ServerWorld world, BlockPos pos)
Create a new instance bound to the passed ServerWorld and position, and querying the same API as the passed lookup.
find
Link copied to clipboard
@Nullable()
A find(C context)
Attempt to retrieve an API from a block in the world, using the world and the position passed at creation time.
@Nullable()
A find(@Nullable() BlockState state, C context)
Attempt to retrieve an API from a block in the world, using the world and the position passed at creation time.
invalidate
Link copied to clipboard
void invalidate()

Sources

jvm source
Link copied to clipboard