Options
All
  • Public
  • Public/Protected
  • All
Menu

Wrapper for the native ActorDamageSource class to get access to the circumstances of an entity damage event.

since

3.0

Hierarchy

Index

Methods

  • clone(): any
  • equals(param0: any): boolean
  • finalize(): void
  • since

    3.0

    Returns BlockState

    block that damaged the victim entity as a BlockState object, or null if the victim entity was not attacked by a block

  • getCause(): number
  • since

    3.0

    Returns number

    numeric ID of the damage cause

  • getDamagingEntity(): Actor
  • since

    3.0

    Returns Actor

    attacker entity as an Actor object, or null if the victim entity was not attacked by another entity

  • getDamagingEntityCategories(): number
  • getDamagingEntityType(): number
  • since

    3.0

    Returns number

    attacker entity's numeric type

  • getDamagingEntityUniqueID(): number
  • since

    3.0

    Returns number

    attacker entity's unique ID

  • since

    3.0

    Returns Actor

    victim entity as an Actor object, or null if couldn't get the victim entity for some reason

  • getEntityCategories(): number
  • getEntityType(): number
  • since

    3.0

    Returns number

    victim entity's numeric type

  • getEntityUniqueID(): number
  • since

    3.0

    Returns number

    victim entity's unique ID

  • getPointer(): number
  • Returns number

    pointer to the native object wrapped by the following native interface object, represented by a signed 64-bit integer

  • hashCode(): number
  • isBlockSource(): boolean
  • since

    3.0

    Returns boolean

    whether the victim entity was damaged by a specific block in the world, for example, magma or cactus

  • isChildEntitySource(): boolean
  • since

    3.0

    Returns boolean

    whether the victim entity was damaged by an entity that had come from another entity, for example, an arrow or another projectile from a player

  • isDamagingEntityCreative(): boolean
  • since

    3.0

    Returns boolean

    whether the attacker entity is in creative mode

  • isDamagingEntityWorldBuilder(): boolean
  • since

    3.0

    Returns boolean

    whether the attacker entity can place and break blocks in the world

  • isEntityCreative(): boolean
  • since

    3.0

    Returns boolean

    whether the victim entity is in creative mode

  • isEntitySource(): boolean
  • since

    3.0

    Returns boolean

    whether the victim entity was damaged by another entity

  • isEntityWorldBuilder(): boolean
  • since

    3.0

    Returns boolean

    whether the victim entity can place and break blocks in the world

  • notify(): void
  • notifyAll(): void
  • setCause(cause: number): void
  • Sets numeric ID of the damage cause

    since

    3.0

    Parameters

    • cause: number

    Returns void

  • toString(): string
  • wait(): void
  • wait(param0: number): void
  • wait(param0: number, param1: number): void

Generated using TypeDoc