Interface ItemApiLookup.ItemApiProvider<A,C>
- Enclosing interface:
ItemApiLookup<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
-
Method Details
-
find
Return an API of typeAif available for the given item stack with the given context, ornullotherwise.Note: An API may or may not allow the item stack to be modified by the returned instance. API authors are strongly encouraged to document this behavior so that implementors can refer to the API documentation.
While providers may capture a reference to the stack, it is expected that they do not modify it directly.- Parameters:
itemStack- The item stack.context- Additional context passed to the query.- Returns:
- An API of type
A, ornullif no API is available.
-