@FunctionalInterface public static interface BlockApiLookup.BlockEntityApiProvider<A,C>
Modifier and Type | Method and Description |
---|---|
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. |
@Nullable A find(net.minecraft.block.entity.BlockEntity blockEntity, C context)
A
if available in the given block entity with the given context, or null
otherwise.blockEntity
- The block entity. It is guaranteed that it is never null.context
- Additional context passed to the query.A
, or null
if no API is available.