Interface CraftingCalculator
- All Known Implementing Classes:
CraftingCalculatorImpl
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@API(status=STABLE,
since="2.0.0-milestone.4.12")
@FunctionalInterface
public interface CraftingCalculator
-
Method Summary
Modifier and TypeMethodDescription<T> void
calculate
(ResourceKey resource, long amount, CraftingCalculatorListener<T> listener, CancellationToken cancellationToken)
-
Method Details
-
calculate
<T> void calculate(ResourceKey resource, long amount, CraftingCalculatorListener<T> listener, CancellationToken cancellationToken) throws CancellationException - Throws:
CancellationException
-