use of org.spongepowered.common.inventory.adapter.impl.MultiInventoryAdapter in project SpongeCommon by SpongePowered.
the class AppendQuery method execute.
@Override
public Inventory execute(Inventory inventory, InventoryAdapter adapter) {
Inventory result = new EmptyInventoryImpl(inventory);
if (this.queryList.isEmpty()) {
return result;
}
List<Inventory> results = this.queryList.stream().map(q -> q.execute(inventory)).collect(Collectors.toList());
return new MultiInventoryAdapter(results);
}
Aggregations