Package mods.railcraft.common.gui.slots

Examples of mods.railcraft.common.gui.slots.SlotRailcraft


                }
            }
            for (Object obj : inventorySlots.inventorySlots) {
                if (!(obj instanceof SlotRailcraft))
                    continue;
                SlotRailcraft slot = (SlotRailcraft) obj;
                if (slot.getStack() != null)
                    continue;
                ToolTip tips = slot.getToolTip();
                if (tips == null)
                    continue;
                boolean mouseOver = isMouseOverSlot(slot, mouseX, mouseY);
                tips.onTick(mouseOver);
                if (mouseOver && tips.isReady()) {
View Full Code Here


    public ContainerTradeStation(InventoryPlayer inventoryplayer, TileTradeStation tile) {
        super(tile);
        this.tile = tile;

        for (int y = 0; y < 3; y++) {
            addSlot(new SlotRailcraft(tile.getRecipeSlots(), 0 + 3 * y, 8, 24 + 21 * y).setPhantom());
            addSlot(new SlotRailcraft(tile.getRecipeSlots(), 1 + 3 * y, 26, 24 + 21 * y).setPhantom());
            addSlot(new SlotRailcraft(tile.getRecipeSlots(), 2 + 3 * y, 71, 24 + 21 * y).setPhantom());
        }

        for (int y = 0; y < 2; y++) {
            for (int x = 0; x < 5; x++) {
                addSlot(new Slot(tile, x + y * 5, 8 + x * 18, 87 + y * 18));
 
View Full Code Here

    private boolean tryShiftItem(ItemStack stackToShift, int numSlots) {
        for (int machineIndex = 0; machineIndex < numSlots - 9 * 4; machineIndex++) {
            Slot slot = (Slot) inventorySlots.get(machineIndex);
            if (slot instanceof SlotRailcraft) {
                SlotRailcraft slotRailcraft = (SlotRailcraft) slot;
                if (slotRailcraft.isPhantom())
                    continue;
                if (!slotRailcraft.canShift())
                    continue;
            }
            if (!slot.isItemValid(stackToShift))
                continue;
            if (shiftItemStack(stackToShift, machineIndex, machineIndex + 1))
View Full Code Here

TOP

Related Classes of mods.railcraft.common.gui.slots.SlotRailcraft

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.