Package forestry.core.gui.slots

Examples of forestry.core.gui.slots.SlotForestry.canShift()


  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 SlotForestry) {
        SlotForestry slotForestry = (SlotForestry) slot;
        if (!slotForestry.canShift())
          continue;
        if (slotForestry.isPhantom())
          continue;
      }
      if (!slot.isItemValid(stackToShift))
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.