Charges

A value shape that methods take or return.

Group
player
Methods
None
Fields
4

Getting one

player:charges():of(…)

Fields

FieldTypeDescription
chargesnumberThe count: doses, teleports, uses.
fixedbooleantrue when the item id says it (a potion's doses, a games necklace's 8); false for a count the client tracked from the game's messages.
seenAtnumber?A tracked count's last observation, Unix milliseconds: 0 when its time is not known. nil for a fixed count.
liveboolean?Whether a tracked count was set this session, so the client has seen every change since. nil for a fixed count.

Returned by

MethodReturnsDescription
ItemCharges.ofCharges?One item's charges.