Examples of BackpackMode


Examples of forestry.storage.BackpackMode

    inventory.save();
    return null;
  }

  private void switchMode(ItemStack itemstack) {
    BackpackMode mode = getMode(itemstack);
    if (mode == BackpackMode.RESUPPLY)
      itemstack.setItemDamage(0);
    else if (mode == BackpackMode.RECEIVE)
      itemstack.setItemDamage(3);
    else if (mode == BackpackMode.LOCKED)
View Full Code Here

Examples of forestry.storage.BackpackMode

        return true;

      // Create our own backpack inventory
      ItemInventory backpackInventory = new ItemInventory(ItemBackpack.class, getBackpackSize(), stack);

      BackpackMode mode = getMode(stack);
      if (mode == BackpackMode.RECEIVE)
        tryChestReceive(player, backpackInventory, inventory);
      else
        tryChestTransfer(backpackInventory, inventory);
View Full Code Here

Examples of forestry.storage.BackpackMode

      // Count the slot as occupied
      occupied++;
    }

    BackpackMode mode = getMode(itemstack);
    if (mode == BackpackMode.LOCKED)
      list.add(StringUtil.localize("storage.backpack.mode.locked"));
    else if (mode == BackpackMode.RECEIVE)
      list.add(StringUtil.localize("storage.backpack.mode.receiving"));
    else if (mode == BackpackMode.RESUPPLY)
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.