blob: 33f39078f75d2a5616b467d6fffb87a9c9099387 [file] [log] [blame] [raw]
package li.cil.oc.api.internal;
import net.minecraft.entity.player.EntityPlayer;
/**
* General marker interface for autonomous agents such as robots and drones.
*/
public interface Agent {
/**
* Returns the fake player used to represent the agent as an entity for
* certain actions that require one.
* <p/>
* This will automatically be positioned and rotated to represent the
* agent's current position and rotation in the world. Use this to trigger
* events involving the agent that require a player entity.
* <p/>
* Note that this <em>may</em> be the common OpenComputers fake player.
*
* @return the fake player for the agent.
*/
EntityPlayer player();
}