Package forestry.core.gui.slots

Examples of forestry.core.gui.slots.SlotForestry


    // Inventory
    for (int j = 0; j < lines; j++)
      for (int k = 0; k < columns; k++) {
        int slot = k + j * columns;
        addSlot(new SlotForestry(inventory, slot, startX + k * 18, startY + j * 18) {

          @Override
          public boolean isItemValid(ItemStack stack) {
            return isAcceptedItem(player, stack);
          }
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 SlotForestry) {
        SlotForestry slotForestry = (SlotForestry) slot;
        if (!slotForestry.canShift())
          continue;
        if (slotForestry.isPhantom())
          continue;
      }
      if (!slot.isItemValid(stackToShift))
        continue;
      if (shiftItemStack(stackToShift, machineIndex, machineIndex + 1))
View Full Code Here

TOP

Related Classes of forestry.core.gui.slots.SlotForestry

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.