use of org.spongepowered.api.item.ItemTypes.BLAZE_POWDER 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