Package net.minecraft.server

Examples of net.minecraft.server.NBTTagList


   * @param inventory to load
   * @param list to load from
   */
  public static void loadInventory(org.bukkit.inventory.Inventory inventory, CommonTagList list) {
    final Object inventoryHandle = Conversion.toInventoryHandle.convert(inventory);
    NBTTagList nbt = (NBTTagList) list.getHandle();
    if (inventoryHandle == null) {
      throw new IllegalArgumentException("This kind of inventory lacks a handle to save");
    } else if (inventoryHandle instanceof PlayerInventory) {
      ((PlayerInventory) inventoryHandle).b(nbt);
    } else if (inventoryHandle instanceof InventoryEnderChest) {
View Full Code Here

TOP

Related Classes of net.minecraft.server.NBTTagList

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.