Package dev.twilite.game.facade
Class MakeX
java.lang.Object
dev.twilite.game.facade.MakeX
Helpers for the standard Make-X / skill production interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemViewproduce()Returns the resulting item options currently shown by the Make-X interface.static voidselect(int index) Confirms the visible Make-X option atindex, where0is the first option.static voidSelects and confirms an item chosen from the current Make-X item view.static booleanshowing()Returns whether the Make-X interface is currently visible.
-
Constructor Details
-
MakeX
public MakeX()
-
-
Method Details
-
showing
public static boolean showing()Returns whether the Make-X interface is currently visible. -
produce
Returns the resulting item options currently shown by the Make-X interface. -
select
public static void select(int index) Confirms the visible Make-X option atindex, where0is the first option. -
select
Selects and confirms an item chosen from the current Make-X item view.Examples:
MakeX.select(items -> items.id(itemId).first()); MakeX.select(items -> items.named("Gold ring").first());
-