Interface GuiStateElement.State.Change

All Known Implementing Classes:
GuiStateElement.State.ChangeHandler
Enclosing class:
GuiStateElement.State

public static interface GuiStateElement.State.Change
Define what should happen when the state of the element' state changes to this state
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    What should happen when the element's state changes to this state
    default void
    What should happen when the element's state changes away from this state
  • Method Details

    • onChange

      void onChange(GuiElement.Click click)
      What should happen when the element's state changes to this state
      Parameters:
      click - The click that triggered this change
    • onLeave

      default void onLeave(GuiElement.Click click)
      What should happen when the element's state changes away from this state
      Parameters:
      click - The click that triggered this change