Options
All
  • Public
  • Public/Protected
  • All
Menu

Object containing data about the circumstances of a loot event. Used in all methods connected with generating a list of randomly chosen items from a loot table.

since

2.0

Hierarchy

Index

Methods

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

    2.0

    Returns number

    following loot event's explosion radius. It's the range the chosen items will be dropped in, if it's a loot event from entity death.

  • since

    2.0

    Returns Actor

    Actor object of the entity who had killed the victim entity, or null if the following loot event was not triggered by entity death or the victim was not killed by an entity.

  • since

    2.0

    Returns Actor

    Actor object of the player's pet who had killed the victim entity, or null if the following loot event was not triggered by entity death or the victim was not killed by some player's pet.

  • since

    2.0

    Returns Player

    Player object of the player who had killed the victim entity, or null if the following loot event was not triggered by entity death or the victim was not killed by a player.

  • getLuck(): number
  • since

    2.0

    Returns number

    amount of luck applied to the following loot event.

  • getPointer(): number
  • Returns number

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

  • since

    2.0

    Returns Actor

    following loot event's ThisEntity, most commonly it's a victim entity, from which the chosen items are dropped. If loot event was not associated with an entity death, null is returned.

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

Generated using TypeDoc