From 37a889ea57ca3101837a31e9be5c83ce765bc296 Mon Sep 17 00:00:00 2001 From: DarkGuardsman Date: Tue, 15 Oct 2013 11:32:51 -0400 Subject: [PATCH] Worked on Armbot interface --- src/minecraft/dark/api/al/armbot/IArmbot.java | 36 ++++++++++++------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/src/minecraft/dark/api/al/armbot/IArmbot.java b/src/minecraft/dark/api/al/armbot/IArmbot.java index 687dd7690..5de576eab 100644 --- a/src/minecraft/dark/api/al/armbot/IArmbot.java +++ b/src/minecraft/dark/api/al/armbot/IArmbot.java @@ -2,26 +2,38 @@ package dark.api.al.armbot; import java.util.List; +import universalelectricity.core.vector.Vector2; + +import com.builtbroken.common.Vector3; + import net.minecraft.entity.Entity; import net.minecraft.item.ItemStack; +import net.minecraftforge.common.ForgeDirection; /** Should be used to interact with the armbot and not to create a new armbot */ public interface IArmbot extends Cloneable { - /** Adds an entity to the Armbot's grab list. */ - public void grabEntity(Entity entity); + /** Location of the hand, or working location of the object */ + public Vector3 getHandPos(); - public void grabItem(ItemStack itemStack); + /** Gets the rotation as a Vector2 (X - Yaw, Y - pitch) */ + public Vector2 getRotation(); - /** Drops the given object - * - * @param object - Entity or ItemStack - * - * String "All" should cause the armbot to drop all items */ + /** Forces the rotation to the two angles */ + public void setRotation(float yaw, float pitch); + + /** Asks the armbot to move its arm to the rotation */ + public void moveTo(float yaw, float pitch); + + /** Asks the armbot to move to the facing direction */ + public void moveTo(ForgeDirection direction); + + /** Adds an entity to the Armbot's grab list. Entity or ItemStack */ + public void grab(Object entity); + + /**Drops an object. Does except strings with "All" resulting in dropping everything */ public void drop(Object object); - /** @return Returns all entities being grabbed by the Armbot. */ - public List getGrabbedEntities(); - - public List getGrabbedItems(); + /** List of object held by the armbot */ + public List getGrabbedObjects(); }