Examples of consumePower()


Examples of buildcraft.transport.PipeTransportPower.consumePower()

    int amount = robot.getBattery().receiveEnergy(1000, false);
   
    powerProvider.requestEnergy(robot.getDockingStation().side(), amount);
   
    robot.getBattery().receiveEnergy(powerProvider.consumePower(robot.getDockingStation().side(), amount), false);

    if (robot.getEnergy() >= EntityRobotBase.MAX_ENERGY) {
      terminate();
    }
  }
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.