Interface LoomView

All Superinterfaces:
InventoryView

public interface LoomView extends InventoryView
An instance of InventoryView which provides extra methods related to loom view data.
  • Method Details

    • getTopInventory

      @NotNull LoomInventory getTopInventory()
      Description copied from interface: InventoryView
      Get the upper inventory involved in this transaction.
      Specified by:
      getTopInventory in interface InventoryView
      Returns:
      the inventory
    • getSelectablePatterns

      @NotNull List<PatternType> getSelectablePatterns()
      Gets a list of all selectable to the player.
      Returns:
      A copy of the PatternType's currently selectable by the player
    • getSelectedPatternIndex

      int getSelectedPatternIndex()
      Gets an index of the selected pattern.
      Returns:
      Index of the selected pattern