Package buildcraft.api.mj

Examples of buildcraft.api.mj.IBatteryObject.addEnergy()


        IBatteryObject o = g.getTargetBattery();
        if ( o != null )
        {
          double fraction = originalInput / outputs;
          if ( cycleLimitMode )
            fraction = o.addEnergy( fraction );
          else
            fraction = o.addEnergy( fraction, ignoreCycleLimit );
          mj -= fraction;
        }
      }
View Full Code Here


        {
          double fraction = originalInput / outputs;
          if ( cycleLimitMode )
            fraction = o.addEnergy( fraction );
          else
            fraction = o.addEnergy( fraction, ignoreCycleLimit );
          mj -= fraction;
        }
      }

      if ( mj > 0 )
View Full Code Here

        {
          IBatteryObject o = g.getTargetBattery();
          if ( o != null )
          {
            if ( cycleLimitMode )
              mj = mj - o.addEnergy( mj );
            else
              mj = mj - o.addEnergy( mj, ignoreCycleLimit );
          }
        }
      }
View Full Code Here

          if ( o != null )
          {
            if ( cycleLimitMode )
              mj = mj - o.addEnergy( mj );
            else
              mj = mj - o.addEnergy( mj, ignoreCycleLimit );
          }
        }
      }

      return originalInput - mj;
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.