Package appeng.tile.inventory

Examples of appeng.tile.inventory.AppEngInternalAEInventory.readFromNBT()


      IInventory inv = ((ISegmentedInventory) this).getInventoryByName( "config" );
      if ( inv != null && inv instanceof AppEngInternalAEInventory )
      {
        AppEngInternalAEInventory target = (AppEngInternalAEInventory) inv;
        AppEngInternalAEInventory tmp = new AppEngInternalAEInventory( null, target.getSizeInventory() );
        tmp.readFromNBT( compound, "config" );
        for (int x = 0; x < tmp.getSizeInventory(); x++)
          target.setInventorySlotContents( x, tmp.getStackInSlot( x ) );
      }
    }
  }
View Full Code Here


    IInventory inv = this.getInventoryByName( "config" );
    if ( inv != null && inv instanceof AppEngInternalAEInventory )
    {
      AppEngInternalAEInventory target = (AppEngInternalAEInventory) inv;
      AppEngInternalAEInventory tmp = new AppEngInternalAEInventory( null, target.getSizeInventory() );
      tmp.readFromNBT( compound, "config" );
      for (int x = 0; x < tmp.getSizeInventory(); x++)
        target.setInventorySlotContents( x, tmp.getStackInSlot( x ) );
    }
  }
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.