Package dev.twilite.game.trait
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 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 forid(), 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.
-