Package appeng.api.implementations.items

Examples of appeng.api.implementations.items.IAEItemPowerStorage.injectAEPower()


      IAEItemPowerStorage ps = (IAEItemPowerStorage) myItem.getItem();
      if ( ps.getAEMaxPower( myItem ) > ps.getAECurrentPower( myItem ) )
      {
        double oldPower = internalCurrentPower;

        double adjustment = ps.injectAEPower( myItem, extractAEPower( 150.0, Actionable.MODULATE, PowerMultiplier.CONFIG ) );
        internalCurrentPower += adjustment;
        if ( oldPower > internalCurrentPower )
          requiresUpdate = true;
        tickTickTimer = 20; // keep ticking...
      }
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.