Options
All
  • Public
  • Public/Protected
  • All
Menu

Wrapper for the native MobEffect class to access some additional properties of a specific potion effect.

since

1.0

Hierarchy

Implements

Index

Constructors

Properties

class: Class<Object>

Methods

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

    1.0

    Returns number

    the numeric ID of the following effect

  • getPointer(): number
  • hashCode(): number
  • isHarmful(): boolean
  • since

    1.0

    Returns boolean

    whether the effect can cause harm to the entity in any way, which leads to death or health points loss

  • isVisible(): boolean
  • since

    1.0

    Returns boolean

    whether the effect is visible in potion effects window by default

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

    • id: number

    Returns MobEffect

    MobEffect object for the potion effect by given numeric ID, or null if effect by this ID is not defined

Generated using TypeDoc