Package com.xpdustry.distributor.api.gui
Interface BiAction<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A function that is executed when an interaction occurs in a gui. Takes an additional parameter as the input.
-
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes the bi-action.static <T> BiAction<T>Returns a bi-action composed of multiple bi-actions.static <T> BiAction<T>Returns a bi-action composed of multiple bi-actions.static <T> BiAction<T>delegate(BiFunction<Window, T, Action> delegate) Returns a bi-action using the result of the given delegate to run another action.static <T> BiAction<T>Returns aBiActionthat wraps the givenAction.Returns aBiActionthat executes this bi-action and then the given action.Returns aBiActionthat executes this bi-action and then the given bi-action.static <T> BiAction<T>Returns a bi-action that sets a state entry with the bi-action input.
-
Method Details
-
from
Returns aBiActionthat wraps the givenAction.- Parameters:
action- the action- Returns:
- the bi-action
-
with
Returns a bi-action that sets a state entry with the bi-action input.- Type Parameters:
T- the type of the value- Parameters:
key- the key- Returns:
- the bi-action
-
delegate
Returns a bi-action using the result of the given delegate to run another action.- Parameters:
delegate- the delegate- Returns:
- the bi-action
-
compose
Returns a bi-action composed of multiple bi-actions.- Parameters:
actions- the bi-actions- Returns:
- the bi-action
-
compose
Returns a bi-action composed of multiple bi-actions.- Parameters:
actions- the bi-actions- Returns:
- the bi-action
-
act
Executes the bi-action.- Parameters:
window- the windowinput- the input
-
then
Returns aBiActionthat executes this bi-action and then the given bi-action.- Parameters:
next- the next bi-action- Returns:
- the bi-action
-
then
Returns aBiActionthat executes this bi-action and then the given action.- Parameters:
next- the next action- Returns:
- the bi-action
-