- Enclosing interface:
- BlockApiLookup<A,C>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
find(net.minecraft.block.entity.BlockEntity blockEntity,
C context)
Return an API of type A
if available in the given block entity with the given context, or null
otherwise.
-
Method Details
-
find
@Nullable
A find(net.minecraft.block.entity.BlockEntity blockEntity,
C context)
Return an API of type A
if available in the given block entity with the given context, or null
otherwise.
- Parameters:
blockEntity
- The block entity. It is guaranteed that it is never null.
context
- Additional context passed to the query.
- Returns:
- An API of type
A
, or null
if no API is available.