Package forestry.core.utils

Examples of forestry.core.utils.ItemInventory.save()


      return stack;

    ItemStack remainder = InvTools.moveItemStack(stack, inventory);
    stack.stackSize = remainder == null ? 0 : remainder.stackSize;

    inventory.save();
    return null;
  }

  private void switchMode(ItemStack itemstack) {
    BackpackMode mode = getMode(itemstack);
View Full Code Here


      if (mode == BackpackMode.RECEIVE)
        tryChestReceive(player, backpackInventory, inventory);
      else
        tryChestTransfer(backpackInventory, inventory);

      backpackInventory.save();

      return true;
    }

    return false;
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.