Package appeng.api.parts

Examples of appeng.api.parts.SelectedPart


      TileEntity te = world.getTileEntity( x, y, z );
      IInventory upgrades = null;

      if ( te instanceof IPartHost )
      {
        SelectedPart sp = ((IPartHost) te).selectPart( Vec3.createVectorHelper( hitX, hitY, hitZ ) );
        if ( sp.part instanceof IUpgradeableHost )
          upgrades = ((IUpgradeableHost) sp.part).getInventoryByName( "upgrades" );
      }
      else if ( te instanceof IUpgradeableHost )
        upgrades = ((IUpgradeableHost) te).getInventoryByName( "upgrades" );
View Full Code Here

TOP

Related Classes of appeng.api.parts.SelectedPart

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.