resonant-induction/archive/java/resonantinduction/electrical/armbot/command/TaskDrop.java
2014-01-11 17:44:07 +08:00

32 lines
661 B
Java

package resonantinduction.electrical.armbot.command;
import resonantinduction.electrical.armbot.TaskBaseArmbot;
import resonantinduction.electrical.armbot.TaskBaseProcess;
import resonantinduction.old.api.IArmbot;
import universalelectricity.api.vector.Vector2;
public class TaskDrop extends TaskBaseArmbot
{
public TaskDrop()
{
super("drop");
this.UV = new Vector2(20, 80);
}
@Override
public ProcessReturn onUpdate()
{
if (super.onUpdate() == ProcessReturn.CONTINUE)
{
((IArmbot) this.program.getMachine()).dropHeldObject();
}
return ProcessReturn.DONE;
}
@Override
public TaskBaseProcess clone()
{
return new TaskDrop();
}
}