Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Accessors

description

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

  • Parameters

    • value: string

    Returns 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

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

rotation

type

Methods

addStorage

attachLabel

damage

despawn

  • despawn(): void
  • Returns void

disableInteractions

  • disableInteractions(): void
  • Returns void

disintegrate

  • disintegrate(): void
  • Returns void

getColor

  • getColor(colorId: number): YColor
  • Parameters

    • colorId: number

    Returns YColor

getResistance

getStorageData

hasLabel

hasStorage

is

  • is(klass: YTag): boolean
  • Parameters

    Returns boolean

isColorable

  • isColorable(colorId: number): boolean
  • Parameters

    • colorId: number

    Returns boolean

isType

kill

  • Parameters

    Returns void

removeLabel

removeStorage

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
  • Parameters

    • colorId: number
    • color: YColor

    Returns void

setCustomInteraction

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

    • hint: string
    • interactionId: string
    • overridesDefault: boolean

    Returns void

setDefaultInteractions

  • setDefaultInteractions(): void
  • Returns void

setResistance

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

    Returns void

transformPosition

transformRotation

Static damage

Static despawn

  • Parameters

    Returns void

Static disintegrate

  • disintegrate(target: YEntity): void
  • Parameters

    Returns void

Static is

  • Parameters

    Returns boolean

Static kill

Static spawn

Static spawnEntity

Static throwEntity

Generated using TypeDoc