Interface Id

All Known Implementing Classes:
BaseItem, Effect, IfComponent, Item, Npc, Projectile, SceneObject, SubInterface, TileItem

public interface Id
Exposes the game definition id for wrappers backed by cache definitions or gameval constants.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the generated gameval constant name for id(), or the numeric id as text when no constant is known.
    int
    id()
    Returns the numeric game definition id, such as an item id, NPC id, or interface group id.
  • Method Details

    • id

      int id()
      Returns the numeric game definition id, such as an item id, NPC id, or interface group id.
    • constantName

      String constantName()
      Returns the generated gameval constant name for 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.