Package net.wesjd.anvilgui
Interface AnvilGUI.ClickHandler
- All Superinterfaces:
BiFunction<Integer,AnvilGUI.StateSnapshot, CompletableFuture<List<AnvilGUI.ResponseAction>>>
- Enclosing class:
AnvilGUI
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface AnvilGUI.ClickHandler
extends BiFunction<Integer,AnvilGUI.StateSnapshot,CompletableFuture<List<AnvilGUI.ResponseAction>>>
A handler that is called when the user clicks a slot. The
Integer is the slot number corresponding to AnvilGUI.Slot, the
AnvilGUI.StateSnapshot contains information about the current state of the anvil,
and the response is a CompletableFuture that will eventually return a
list of AnvilGUI.ResponseAction to execute in the order that they are supplied.-
Method Summary
Methods inherited from interface java.util.function.BiFunction
andThen, apply