Class SubInterface

java.lang.Object
dev.twilite.game.wrapper.SubInterface
All Implemented Interfaces:
Id

public class SubInterface extends Object implements Id
Open sub-interface attached under a parent component id.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SubInterface(dev.twilite.game.internal.memory.RSSubInterface memory)
    Wraps a native sub-interface provider.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the generated gameval constant name for Id.id(), or the numeric id as text when no constant is known.
    int
    id()
    Returns the opened interface group id.
    int
    Returns the parent component id.
    int
    Returns the sub-interface type.

    Methods inherited from class java.lang.Object

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

    • SubInterface

      public SubInterface(dev.twilite.game.internal.memory.RSSubInterface memory)
      Wraps a native sub-interface provider.
  • Method Details

    • parentId

      public int parentId()
      Returns the parent component id.
    • id

      public int id()
      Returns the opened interface group id.
      Specified by:
      id in interface Id
    • constantName

      public String constantName()
      Description copied from interface: Id
      Returns the generated gameval constant name for Id.id(), or the numeric id as text when no constant is known.

      This is intended for logs and diagnostics where a stable symbolic name is easier to read than a raw number.

      Specified by:
      constantName in interface Id
    • type

      public int type()
      Returns the sub-interface type.