Class Interfaces

java.lang.Object
dev.twilite.game.Interfaces

public class Interfaces extends Object
Static entry point for interface component queries.
  • Constructor Details

    • Interfaces

      public Interfaces()
  • Method Details

    • topLevel

      public static int topLevel()
    • components

      @Deprecated public static ComponentView components()
      Deprecated.
      Do not use this.
    • components

      public static ComponentView components(int group)
      Returns a lazy view of interface components in a group.
      Parameters:
      group - interface group id, usually from InterfaceId
    • component

      public static Optional<IfComponent> component(int id)
      Returns a component by packed id.
      Parameters:
      id - packed interface component id from InterfaceId
    • visible

      public static boolean visible(int id)
      Returns whether a component exists and is visible.
      Parameters:
      id - packed interface component id from InterfaceId
    • cc

      public static ComponentView cc(int id)
      Returns the dynamic children of a component by packed id.
      Parameters:
      id - packed interface component id from InterfaceId
    • cc

      public static Optional<IfComponent> cc(int id, int child)
      Returns a dynamic child of a component by packed id and child index.
      Parameters:
      id - packed interface component id from InterfaceId