use of org.spongepowered.common.inventory.lens.impl.slot.InputSlotLens in project SpongeCommon by SpongePowered.
the class BrewingStandInventoryLens method init.
protected void init(final SlotLensProvider slots) {
// TODO filter
this.potions = new DefaultIndexedLens(0, 3, slots);
this.ingredient = new InputSlotLens(slots.getSlotLens(3), ItemStackFilter.filterIInventory(3));
this.fuel = new FuelSlotLens(slots.getSlotLens(4), ItemStackFilter.filterIInventory(4));
this.addSpanningChild(this.potions);
this.addSpanningChild(this.ingredient);
this.addSpanningChild(this.fuel);
}
use of org.spongepowered.common.inventory.lens.impl.slot.InputSlotLens in project SpongeCommon by SpongePowered.
the class FurnaceInventoryLens method init.
protected void init(final SlotLensProvider slots) {
this.addSpanningChild(new DefaultIndexedLens(0, 3, slots));
this.input = new InputSlotLens(slots.getSlotLens(0), ItemStackFilter.filterIInventory(0));
this.fuel = new FuelSlotLens(slots.getSlotLens(1), ItemStackFilter.filterIInventory(1));
this.output = new OutputSlotLens(slots.getSlotLens(2), ItemStackFilter.filterIInventory(2));
this.addChild(this.input, KeyValuePair.slotIndex(0));
this.addChild(this.fuel, KeyValuePair.slotIndex(1));
this.addChild(this.output, KeyValuePair.slotIndex(2));
}
Aggregations