All Known Implementing Classes:
BigDecimalMenuState, BooleanMenuState, CurrentScrollPositionMenuState, FloatMenuState, IntegerMenuState, MenuState, PortableColorMenuState, StringListMenuState, StringMenuState

public interface AnyMenuState
AnyMenuState represents any menu state of any type, it is a convenience that allows for non-generic access to a menu state of any type, where the type is not important. Generally it's best to work with state via MenuItemHelper
  • Method Details

    • getItem

      MenuItem getItem()
      Returns:
      the item that this state belongs to
    • getValue

      Object getValue()
      Returns:
      the current value of this item, you can get a more refined from the sub class methods
    • isChanged

      boolean isChanged()
      Returns:
      true if the state has changed
    • isActive

      boolean isActive()
      Returns:
      true if the state represents the active item
    • getStorageType

      Returns:
      the type of data this menu state holds