Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Accessors

activeItem

canFly

  • get canFly(): boolean
  • Returns boolean

canRespawn

  • get canRespawn(): boolean
  • set canRespawn(value: boolean): any
  • Returns boolean

  • Parameters

    • value: boolean

    Returns any

canTrade

  • get canTrade(): boolean
  • set canTrade(value: boolean): any
  • Returns boolean

  • Parameters

    • value: boolean

    Returns any

controlledEntity

  • get controlledEntity(): YEntity
  • set controlledEntity(value: YEntity): any

description

  • get description(): string
  • set description(value: string): any
  • Returns string

  • Parameters

    • value: string

    Returns any

equipment

forcedCanFly

forcedDefaultHitPointRegeneration

  • get forcedDefaultHitPointRegeneration(): YForcedBool
  • set forcedDefaultHitPointRegeneration(value: YForcedBool): any

healthBarVisiblility

hitPoints

  • get hitPoints(): number
  • set hitPoints(value: number): any
  • Returns number

  • Parameters

    • value: number

    Returns any

indestructible

  • get indestructible(): boolean
  • set indestructible(value: boolean): any
  • Returns boolean

  • Parameters

    • value: boolean

    Returns any

inventory

isOnline

  • get isOnline(): boolean
  • Returns boolean

labels

maxHitPoints

  • get maxHitPoints(): number
  • set maxHitPoints(value: number): any
  • Returns number

  • Parameters

    • value: number

    Returns any

name

  • get name(): string
  • set name(value: string): any
  • Returns string

  • Parameters

    • value: string

    Returns any

position

respawnCount

  • get respawnCount(): number
  • Returns number

respawnPoint

  • get respawnPoint(): YLogic
  • set respawnPoint(value: YLogic): any

role

rotation

team

type

velocity

Methods

addStorage

attachLabel

changeRole

  • changeRole(role: YPlayerRole, resetEquip: boolean, resetInventory: boolean): void
  • Parameters

    • role: YPlayerRole
    • resetEquip: boolean
    • resetInventory: boolean

    Returns void

changeTeam

damage

despawn

  • despawn(): void

disableInteractions

  • disableInteractions(): void

disintegrate

  • disintegrate(): void

equip

  • Parameters

    Returns void

forceFlying

  • forceFlying(flying: boolean): void
  • Parameters

    • flying: boolean

    Returns void

getColor

  • getColor(colorId: number): YColor

getEquippedItem

getForcedImmunity

getMovementBonus

getResistance

getState

getStorageData

hasImmunity

hasLabel

hasRole

hasStorage

hasTeam

is

  • is(klass: YTag): boolean
  • Parameters

    Returns boolean

isColorable

  • isColorable(colorId: number): boolean

isEquipmentSlotLocked

isType

kill

lockEquipmentSlot

removeLabel

removeStorage

resetMovementKeys

  • resetMovementKeys(): void
  • Returns void

respawn

  • respawn(): void
  • Returns void

revertColor

  • revertColor(color1: boolean, color2: boolean, color3: boolean): void
  • Parameters

    • color1: boolean
    • color2: boolean
    • color3: boolean

    Returns void

setColor

  • setColor(colorId: number, color: YColor): void

setCustomInteraction

  • setCustomInteraction(hint: string, interactionId: string, overridesDefault: boolean): void

setDefaultInteractions

  • setDefaultInteractions(): void

setForcedImmunity

setHotbarSlot

  • setHotbarSlot(slot: number, item: YEntity): void
  • Parameters

    Returns void

setMovementBonus

setResistance

  • setResistance(damageType: YDamageType, value: number): void

setState

transformPosition

transformRotation

Static damage

Static despawn

Static disintegrate

  • disintegrate(target: YEntity): void

Static is

Static kill

Static spawn

Static spawnEntity

Static throwEntity

Generated using TypeDoc