WidgetInfoExtended
The WidgetInfoExtended type.
EnumRLPlugins API
public enum WidgetInfoExtendedValues
DIALOG_OPTION_OPTION1, DIALOG2_SPRITE_TEXT, MINIGAME_DIALOG_TEXT, MINIGAME_DIALOG_CONTINUE, DIALOG_NOTIFICATION_TEXT, DIALOG_NPC_CONTINUE, DIALOG_PLAYER_CONTINUE, DIALOG2_SPRITE, DIALOG2_SPRITE_CONTINUE, DIALOG_NOTIFICATION_CONTINUE, LEVEL_UP_CONTINUE, EQUIPMENT_HELMET, EQUIPMENT_CAPE, EQUIPMENT_AMULET, EQUIPMENT_WEAPON, EQUIPMENT_BODY, EQUIPMENT_SHIELD, EQUIPMENT_LEGS, EQUIPMENT_GLOVES, EQUIPMENT_BOOTS, EQUIPMENT_RING, EQUIPMENT_AMMO, WORLD_SWITCHER_LOGOUT_BUTTON
Members
Methods
- intgetChildId()
Gets the ID of the child in the group.
- intgetGroupId()
Gets the group ID of the pair.
- intgetId()
Gets the ID of the group-child pairing.
- intgetPackedId()
Gets the packed widget ID.
- WidgetInfoExtendedof(int, int)
Of.
- WidgetInfoExtendedofId(int)
Of id.
- intPACK(int, int)
Packs the group and child IDs into a single integer.
- intTO_CHILD(int)
Utility method that converts an ID returned by
getId()back to its child ID. - intTO_GROUP(int)
Utility method that converts an ID returned by
getId()back to its group ID.
getChildId()
public int getChildId()Gets the ID of the child in the group.
Returns
The child ID.
getGroupId()
public int getGroupId()Gets the group ID of the pair.
Returns
The group ID.
getId()
public int getId()Gets the ID of the group-child pairing.
Returns
The ID.
getPackedId()
public int getPackedId()Gets the packed widget ID.
Returns
The packed ID.
of(int, int)static
public static WidgetInfoExtended of(int groupId, int childId)Of.
Parameters
groupId- Group id.
childId- Child id.
ofId(int)static
public static WidgetInfoExtended ofId(int packed)Of id.
Parameters
packed- Packed.
PACK(int, int)static
public static int PACK(int groupId, int childId)Packs the group and child IDs into a single integer.
Parameters
groupId- The group ID.
childId- The child ID.
Returns
The packed ID.
TO_CHILD(int)static
public static int TO_CHILD(int id)Utility method that converts an ID returned by getId() back to its child ID.
Parameters
id- Passed group-child ID.
Returns
The child ID.
TO_GROUP(int)static
public static int TO_GROUP(int id)Utility method that converts an ID returned by getId() back to its group ID.
Parameters
id- Passed group-child ID.
Returns
The group ID.
Also allowed
Every enum has these, as in plain Java.
compareTo, equals, hashCode, name, ordinal, toString, valueOf, values