Class Tabs

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

public class Tabs extends Object
Provides helpers for reading and opening gameframe tabs.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Optional<Tab>
    Returns the currently active tab, when one can be detected.
    static boolean
    active(Tab tab)
    Returns whether the specified tab is currently active.
    static void
    open(Tab tab)
    Opens the specified tab when it is not already active.

    Methods inherited from class java.lang.Object

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

    • Tabs

      public Tabs()
  • Method Details

    • active

      public static boolean active(Tab tab)
      Returns whether the specified tab is currently active.
    • active

      public static Optional<Tab> active()
      Returns the currently active tab, when one can be detected.
    • open

      public static void open(Tab tab)
      Opens the specified tab when it is not already active.