32 lines
661 B
Java
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();
|
|
}
|
|
|
|
}
|