mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-02 08:48:00 +01:00
16 lines
327 B
Java
16 lines
327 B
Java
|
package com.minelittlepony.gui;
|
||
|
|
||
|
/**
|
||
|
* Response actions for UI events.
|
||
|
*/
|
||
|
@FunctionalInterface
|
||
|
public interface IGuiCallback<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);
|
||
|
}
|