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 Type
    Method
    Description
    int
    The index of the currently selected slot in the inventory.
    void
    setSelectedSlot(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.