Examples of addBoundary()


Examples of de.eydamos.backpack.inventory.container.ContainerAdvanced.addBoundary()

        container.setWidth(maxWidth + 2 * X_SPACING);

        int x = X_SPACING;
        int y = 17; // initial space for label

        container.addBoundary(Boundaries.BACKPACK);

        int remainingSlots = inventories[1].getSizeInventory();
        // backpack inventory
        for(int row = 0; row < inventoryRows; row++) {
            int cols = remainingSlots >= slotsPerRow ? slotsPerRow : remainingSlots;
View Full Code Here

Examples of de.eydamos.backpack.inventory.container.ContainerAdvanced.addBoundary()

            }
            y += SLOT;
            x = X_SPACING;
        }

        container.addBoundary(Boundaries.BACKPACK_END);
        container.addBoundary(Boundaries.INVENTORY);

        y += 14; // space for label

        // player inventory
View Full Code Here

Examples of de.eydamos.backpack.inventory.container.ContainerAdvanced.addBoundary()

            y += SLOT;
            x = X_SPACING;
        }

        container.addBoundary(Boundaries.BACKPACK_END);
        container.addBoundary(Boundaries.INVENTORY);

        y += 14; // space for label

        // player inventory
        for(int row = 0; row < 3; row++) {
View Full Code Here

Examples of de.eydamos.backpack.inventory.container.ContainerAdvanced.addBoundary()

            }
            y += SLOT;
            x = X_SPACING;
        }

        container.addBoundary(Boundaries.INVENTORY_END);
        container.addBoundary(Boundaries.HOTBAR);

        y += 6;

        // hotbar
View Full Code Here

Examples of de.eydamos.backpack.inventory.container.ContainerAdvanced.addBoundary()

            y += SLOT;
            x = X_SPACING;
        }

        container.addBoundary(Boundaries.INVENTORY_END);
        container.addBoundary(Boundaries.HOTBAR);

        y += 6;

        // hotbar
        for(int col = 0; col < 9; col++) {
View Full Code Here

Examples of de.eydamos.backpack.inventory.container.ContainerAdvanced.addBoundary()

        for(int col = 0; col < 9; col++) {
            container.addSlot(new Slot(inventories[0], col, x, y));
            x += SLOT;
        }

        container.addBoundary(Boundaries.HOTBAR_END);

        y += SLOT;
        y += 7;

        // set container height (needed for gui)
View Full Code Here

Examples of de.eydamos.backpack.inventory.container.ContainerAdvanced.addBoundary()

        container.setWidth(maxWidth + 2 * X_SPACING);

        int x = (int) Math.round(maxWidth / 2. - SLOT / 2.) + 1;
        int y = 17; // initial space for label

        container.addBoundary(Boundaries.BACKPACK);

        // backpack slot
        container.addSlot(new SlotBackpackOnly(inventorySlot, 0, x, y));

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

Examples of de.eydamos.backpack.inventory.container.ContainerAdvanced.addBoundary()

        container.addBoundary(Boundaries.BACKPACK);

        // backpack slot
        container.addSlot(new SlotBackpackOnly(inventorySlot, 0, x, y));

        container.addBoundary(Boundaries.BACKPACK_END);

        x = X_SPACING;
        y += 15 + SLOT;
        // pickup inventory
        for(int i = 0; i < inventoryPickup.getSizeInventory(); i++) {
View Full Code Here

Examples of de.eydamos.backpack.inventory.container.ContainerAdvanced.addBoundary()

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

        container.addBoundary(Boundaries.INVENTORY);

        x = X_SPACING;
        y += 24;
        // player inventory
        for(int row = 0; row < 3; row++) {
View Full Code Here

Examples of de.eydamos.backpack.inventory.container.ContainerAdvanced.addBoundary()

            }
            y += SLOT;
            x = X_SPACING;
        }

        container.addBoundary(Boundaries.INVENTORY_END);
        container.addBoundary(Boundaries.HOTBAR);

        y += 6;

        // hotbar
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.