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 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.
-
Method Details
-
from
Returns aBiActionthat wraps the givenAction.- Parameters:
action- the action- 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
-