use of org.spongepowered.common.item.inventory.lens.impl.slots.FuelSlotLensImpl in project SpongeCommon by SpongePowered.
the class FurnaceInventoryLens method init.
@Override
protected void init(SlotProvider<IInventory, ItemStack> slots) {
this.addChild(new OrderedInventoryLensImpl(0, 3, 1, slots));
this.input = new InputSlotLensImpl(0, (i) -> true, (i) -> true);
// TODO SlotFurnaceFuel
this.fuel = new FuelSlotLensImpl(1, (i) -> true, (i) -> true);
// SlotFurnaceOutput
this.output = new OutputSlotLensImpl(2, (i) -> false, (i) -> false);
this.addSpanningChild(this.input, new SlotIndex(0));
this.addSpanningChild(this.fuel, new SlotIndex(1));
this.addSpanningChild(this.output, new SlotIndex(2));
}
use of org.spongepowered.common.item.inventory.lens.impl.slots.FuelSlotLensImpl in project SpongeCommon by SpongePowered.
the class BrewingStandInventoryLens method init.
@Override
protected void init(SlotProvider<IInventory, ItemStack> slots) {
this.potions = new OrderedInventoryLensImpl(0, 3, 1, OutputSlot.class, slots);
// TODO filter PotionIngredients
this.ingredient = new InputSlotLensImpl(3, (i) -> true, (i) -> true);
this.fuel = new FuelSlotLensImpl(4, (i) -> BLAZE_POWDER.equals(i.getType()), BLAZE_POWDER::equals);
this.addSpanningChild(this.potions);
this.addSpanningChild(this.ingredient);
this.addSpanningChild(this.fuel);
}
Aggregations