Class MakeX

java.lang.Object
dev.twilite.game.facade.MakeX

public class MakeX extends Object
Helpers for the standard Make-X / skill production interface.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static ItemView
    Returns the resulting item options currently shown by the Make-X interface.
    static void
    select(int index)
    Confirms the visible Make-X option at index, where 0 is the first option.
    static void
    Selects and confirms an item chosen from the current Make-X item view.
    static boolean
    Returns whether the Make-X interface is currently visible.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MakeX

      public MakeX()
  • Method Details

    • showing

      public static boolean showing()
      Returns whether the Make-X interface is currently visible.
    • produce

      public static ItemView 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 at index, where 0 is the first option.
    • select

      public static void select(Function<ItemView,Optional<Item>> function)
      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());