Interface PickerEditor

All Superinterfaces:
GuiEditor

public non-sealed interface PickerEditor extends GuiEditor
A searchable single choice, such as an item or a potion. Clicking a row chooses it.
  • Method Details

    • search

      TextFieldState search()
    • entries

      List<ListEntry> entries()
      Returns:
      Rows matching the search; while the search is empty the first row clears the choice
    • hasImages

      boolean hasImages()
    • select

      void select(ListEntry entry)
    • initialRow

      int initialRow()
      Returns:
      Index of the row to scroll to when the editor opens