Package forestry.storage

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


        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

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

Related Classes of forestry.storage.BackpackMode

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.