diff --git a/src/main/java/li/cil/oc2/api/capabilities/Robot.java b/src/main/java/li/cil/oc2/api/capabilities/Robot.java index 5ce0cf0c..630ff437 100644 --- a/src/main/java/li/cil/oc2/api/capabilities/Robot.java +++ b/src/main/java/li/cil/oc2/api/capabilities/Robot.java @@ -7,9 +7,26 @@ import net.minecraftforge.items.ItemStackHandler; * modules installed in them to interact with them. */ public interface Robot { + /** + * Provides access to the inventory of the robot. + *
+ * This does not include the hardware configuration part of the inventory. + * + * @return the inventory of the robot. + */ ItemStackHandler getInventory(); + /** + * The index of the currently selected slot in the inventory. + * + * @return the selected slot. + */ int getSelectedSlot(); + /** + * Sets the index of the currently selected slot in the inventory. + * + * @param value the slot to select. + */ void setSelectedSlot(final int value); }