use of logisticspipes.routing.LogisticsDictPromise in project LogisticsPipes by RS485.
the class ModuleCrafter method registerExtras.
@Override
public void registerExtras(IPromise promise) {
if (promise instanceof LogisticsDictPromise) {
_service.getItemOrderManager().addExtra(((LogisticsDictPromise) promise).getResource());
return;
} else {
ItemIdentifierStack stack = new ItemIdentifierStack(promise.getItemType(), promise.getAmount());
_service.getItemOrderManager().addExtra(new DictResource(stack, null));
}
}
Aggregations