resonant-induction/APIs/icbm/api/IMissileLockable.java
2013-07-22 01:20:20 -04:00

30 lines
668 B
Java

package icbm.api;
import universalelectricity.core.vector.Vector3;
/**
* Implement this to your entity if you want antiballistic missiles to be able
* to lock onto it.
*
* @author Calclavia
*
*/
public interface IMissileLockable {
/**
* Can this entity be locked on by a missile?
*
* @return True if so.
*/
public boolean canLock(IMissile missile);
/**
* Gets the predicted position of this entity after a specified amount of
* ticks.
*
* @param ticks
* - The amount of time.
* @return The predicted Vector, or if not predictable, the current
* position.
*/
public Vector3 getPredictedPosition(int ticks);
}