Package de.eydamos.backpack.inventory.slot

Examples of de.eydamos.backpack.inventory.slot.SlotBackpack


public class ContainerPickup extends ContainerAdvanced {
    public ContainerPickup(IInventory inventoryToSave, BackpackSave save) {
        super(new IInventory[] { inventoryToSave }, save);

        for(int i = 0; i < inventory.getSizeInventory(); i++) {
            addSlotToContainer(new SlotBackpack(inventory, i, 0, 0));
        }
    }
View Full Code Here


            remainingSlots -= cols;
            if(cols * SLOT < maxWidth/* && !hasScrollbar */) {
                x += (int) Math.round(maxWidth / 2. - cols * SLOT / 2.) + 1;
            }
            for(int col = 0; col < cols; ++col) {
                container.addSlot(new SlotBackpack(inventories[1], col + row * 9, x, y));
                x += SLOT;
            }
            y += SLOT;
            x = X_SPACING;
        }
View Full Code Here

            remainingSlots -= cols;
            if(cols * SLOT < 9 * SLOT/* && !hasScrollbar */) {
                x += (int) Math.round(9 * SLOT / 2. - cols * SLOT / 2.) + 1;
            }
            for(int col = 0; col < cols; ++col) {
                container.addSlot(new SlotBackpack(inventories[1], col + row * 9, x, y));
                x += SLOT;
            }
            y += SLOT;
            x = X_SPACING;
        }
View Full Code Here

TOP

Related Classes of de.eydamos.backpack.inventory.slot.SlotBackpack

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.