LivePlayer
class LivePlayer extends LiveEntity<PlayerData>
Defined in player.ts:48
Properties
afk
readonly afk: boolean
alive
readonly alive: boolean
auras
readonly auras: readonly LiveAura[]
cell
readonly cell: string
dead
readonly dead: boolean
entityId
readonly entityId: number
entityType
readonly entityType: string
hp
readonly hp: number
hpPercent
readonly hpPercent: number
idle
readonly idle: boolean
inCombat
readonly inCombat: boolean
level
readonly level: number
maxHp
readonly maxHp: number
maxMp
readonly maxMp: number
mp
readonly mp: number
mpPercent
readonly mpPercent: number
pad
readonly pad: string
position
readonly position: Position
state
readonly state: EntityState
username
readonly username: string
Methods
getAura()
getAura(name: string, options?: AuraQueryOptions): LiveAura | null
hasAura()
hasAura(name: string, options?: AuraQueryOptions): boolean
isInCell()
isInCell(cell: string): boolean
toJSON()
toJSON(): PlayerSnapshot