Package de.eydamos.backpack.inventory.slot

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


        x = X_SPACING;
        y += 15 + SLOT;
        // pickup inventory
        for(int i = 0; i < inventoryPickup.getSizeInventory(); i++) {
            container.addSlot(new SlotPhantom(inventoryPickup, i, x, y));
            x += SLOT;
        }

        container.addBoundary(Boundaries.INVENTORY);
View Full Code Here


        container.addBoundary(Boundaries.CRAFTING);

        // crafting grid
        for(int row = 0; row < 3; row++) {
            for(int col = 0; col < 3; col++) {
                container.addSlot(new SlotPhantom(craftingGrid, col + row * 3, x, y));
                x += SLOT;
            }
            y += SLOT;
            x = xSpacing;
        }

        container.addBoundary(Boundaries.CRAFTING_END);

        if(backpack.isIntelligent()) {
            // recipes
            y = 17;
            x += 108;
            for(int row = 0; row < 3; row++) {
                for(int col = 0; col < 3; col++) {
                    container.addSlot(new SlotPhantom(recipes, col + row * 3, x, y));
                    x += SLOT;
                }
                y += SLOT;
                x = xSpacing + 108;
            }
View Full Code Here

TOP

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

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.