Examples of SlotPhantom


Examples of buildcraft.core.gui.slots.SlotPhantom

    super(table.getSizeInventory());
    this.workbench = table;

    for (int y = 0; y < 3; y++) {
      for (int x = 0; x < 3; x++) {
        addSlotToContainer(new SlotPhantom(table.getCraftingSlots(), x + y * 3, 33 + x * 18, 16 + y * 18));
      }
    }

    addSlotToContainer(new SlotUntouchable(table.getOutputSlot(), 0, 127, 34));

View Full Code Here

Examples of buildcraft.core.gui.slots.SlotPhantom

    this.pipe = pipe;
    this.playerInv = playerInventory;
    this.filterInv = pipe.getFilters();

    for (int i = 0; i < 9; i++) {
      addSlotToContainer(new SlotPhantom(filterInv, i, 8 + i * 18, 18));
    }

    for (int l = 0; l < 3; l++) {
      for (int k1 = 0; k1 < 9; k1++) {
        addSlotToContainer(new Slot(playerInventory, k1 + l * 9 + 9, 8 + k1 * 18, 79 + l * 18));
 
View Full Code Here

Examples of buildcraft.core.gui.slots.SlotPhantom

    addWidget(paintWidgets[0] = new PaintWidget(0, 51, 19));
    addWidget(paintWidgets[1] = new PaintWidget(1, 104, 19));
    addWidget(paintWidgets[2] = new PaintWidget(2, 51, 47));
    addWidget(paintWidgets[3] = new PaintWidget(3, 104, 47));

    addSlot(new SlotPhantom(filterInv, 0, 25, 21));
    addSlot(new SlotPhantom(filterInv, 1, 134, 21));
    addSlot(new SlotPhantom(filterInv, 2, 25, 49));
    addSlot(new SlotPhantom(filterInv, 3, 134, 49));

    for (int l = 0; l < 3; l++) {
      for (int k1 = 0; k1 < 9; k1++) {
        addSlotToContainer(new Slot(playerInventory, k1 + l * 9 + 9, 8 + k1 * 18, 84 + l * 18));
      }
 
View Full Code Here

Examples of buildcraft.core.gui.slots.SlotPhantom

    this.playerInv = playerInventory;
    this.filterInv = pipe.getFilters();

    for (int y = 0; y < 6; y++) {
      for (int x = 0; x < 9; x++) {
        addSlotToContainer(new SlotPhantom(filterInv, x + y * 9, 8 + x * 18, 18 + y * 18));
      }
    }

    for (int l = 0; l < 3; l++) {
      for (int k1 = 0; k1 < 9; k1++) {
View Full Code Here

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

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

        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
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.