Package appeng.tile.inventory

Examples of appeng.tile.inventory.AppEngInternalAEInventory


    if ( this instanceof ISegmentedInventory )
    {
      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

Related Classes of appeng.tile.inventory.AppEngInternalAEInventory

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.