buildcraft/api/buildcraft/api/power/ILaserTarget.java

42 lines
970 B
Java
Raw Normal View History

2014-02-15 09:21:40 +01:00
/**
* Copyright (c) 2011-2014, SpaceToad and the BuildCraft Team
2013-11-21 02:27:01 +01:00
* http://www.mod-buildcraft.com
2014-02-15 09:21:40 +01:00
*
* The BuildCraft API is distributed under the terms of the MIT License.
* Please check the contents of the license, which should be located
* as "LICENSE.API" in the BuildCraft source code distribution.
2013-11-21 02:27:01 +01:00
*/
package buildcraft.api.power;
public interface ILaserTarget {
/**
* Returns true if the target currently needs power. For example, if the Advanced
* Crafting Table has work to do.
*
* @return true if needs power
*/
boolean requiresLaserEnergy();
/**
* Transfers energy from the laser to the target.
*
* @param energy
*/
2014-09-03 19:22:15 +02:00
void receiveLaserEnergy(int energy);
2013-11-21 02:27:01 +01:00
/**
* Return true if the Tile Entity object is no longer a valid target. For
* example, if its been invalidated.
*
* @return true if no longer a valid target object
*/
boolean isInvalidTarget();
2014-09-03 19:22:15 +02:00
double getXCoord();
2013-11-21 02:27:01 +01:00
2014-09-03 19:22:15 +02:00
double getYCoord();
2013-11-21 02:27:01 +01:00
2014-09-03 19:22:15 +02:00
double getZCoord();
2013-11-21 02:27:01 +01:00
}