electrodynamics/APIs/icbm/api/IMissileLockable.java

28 lines
634 B
Java
Raw Normal View History

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