find
Attempt to retrieve an API from a block in the world.Consider using BlockApiCache if you are doing frequent queries at the same position.
Note: If the block state or the block entity is known, it is more efficient to use find.
Return
The retrieved API, or {@code null}
if no API was found.
Parameters
The world.
The position of the block.
Additional context for the query, defined by type parameter C.
Attempt to retrieve an API from a block in the world.Consider using BlockApiCache if you are doing frequent queries at the same position.
Return
The retrieved API, or {@code null}
if no API was found.
Parameters
The world.
The position of the block.
Additional context for the query, defined by type parameter C.
The block state at the target position, or null if unknown.
The block entity at the target position if it is known, or null if it is unknown or does not exist.