mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 06:18:00 +01:00
Docs!
This commit is contained in:
parent
23b2618f1e
commit
e56611c3fc
2 changed files with 16 additions and 0 deletions
|
@ -1,5 +1,12 @@
|
|||
package com.minelittlepony.gui;
|
||||
|
||||
/**
|
||||
* An element that can perform an action.
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface IActionable {
|
||||
/**
|
||||
* Does whatever.
|
||||
*/
|
||||
void perform();
|
||||
}
|
||||
|
|
|
@ -1,6 +1,15 @@
|
|||
package com.minelittlepony.gui;
|
||||
|
||||
/**
|
||||
* Response actions for UI events.
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface IGUIAction<T> {
|
||||
/**
|
||||
* Performs this action now.
|
||||
*
|
||||
* @param value New Value of the field being changed
|
||||
* @return Adjusted value the field must take on
|
||||
*/
|
||||
T perform(T value);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue