Package de.themoep.inventorygui
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 TypeMethodDescriptionvoidonChange(GuiElement.Click click) What should happen when the element's state changes to this statedefault voidonLeave(GuiElement.Click click) What should happen when the element's state changes away from this state
-
Method Details
-
onChange
What should happen when the element's state changes to this state- Parameters:
click- The click that triggered this change
-
onLeave
What should happen when the element's state changes away from this state- Parameters:
click- The click that triggered this change
-