Interface LoomView

All Superinterfaces:
InventoryView

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

    • getTopInventory

      @NotNull @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
      Since:
      1.21.1
    • getSelectablePatterns

      @NotNull @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
      Since:
      1.21
    • getSelectedPatternIndex

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