use of org.spongepowered.common.item.inventory.adapter.impl.comp.CraftingGridInventoryAdapter in project SpongeCommon by SpongePowered.
the class InventoryUtil method toSpongeInventory.
public static CraftingGridInventory toSpongeInventory(InventoryCrafting inv) {
IInventoryFabric fabric = new IInventoryFabric(inv);
CraftingGridInventoryLens lens = new CraftingGridInventoryLensImpl(0, inv.getWidth(), inv.getHeight(), inv.getWidth(), SlotLensImpl::new);
return new CraftingGridInventoryAdapter(fabric, lens);
}
Aggregations