Package li.cil.oc2.api.capabilities
Interface Robot
public interface Robot
This interface may be implemented by entities hosting devices to allow
modules installed in them to interact with them.
-
Method Summary
Modifier and TypeMethodDescriptionintThe index of the currently selected slot in the inventory.voidsetSelectedSlot(int value) Sets the index of the currently selected slot in the inventory.
-
Method Details
-
getSelectedSlot
int getSelectedSlot()The index of the currently selected slot in the inventory.- Returns:
- the selected slot.
-
setSelectedSlot
void setSelectedSlot(int value) Sets the index of the currently selected slot in the inventory.- Parameters:
value- the slot to select.
-