Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Starving

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected Readonly entity

entity: Entity

Readonly event

event: IEventEmitter<this, IStatusEffectEvents> = new EventEmitter<this, E>(this)

Readonly type

Methods

add

Protected createParticles

  • createParticles(__namedParameters?: [number, undefined | IRGB]): void

Protected damageEntity

  • damageEntity(damage: number, deathMessage: Message, blood?: undefined | false | true): undefined | number
  • Parameters

    • damage: number
    • deathMessage: Message
    • Optional blood: undefined | false | true

    Returns undefined | number

deregister

  • deregister(): void
  • Emits the "deregister" event on this entity.

    final

    This method isn't meant to be overridden. If you need to run code on deregistration, subscribe to the "deregister" event.

    Returns void

getBadness

getDescription

Protected getEffectRate

  • getEffectRate(): number

getHighlight

getIcon

getLevel

  • getLevel(): number
  • Returns the "level" of this status effect. Higher levels mean greater effects. A level of 0 means no effect. The default implementation of this method returns 1 if the effect is active, and 0 if it is not.

    Returns number

getOptions

getParticles

getRenderer

getTranslation

isActive

  • isActive(): boolean
  • Returns boolean

Protected onPassed

  • onPassed(): void
  • Event handler for when the status effect passes.

    Returns void

Protected onTick

  • onTick(): void
  • Event handler for every tick that the human has the status effect.

    Returns void

refresh

  • refresh(): void
  • Returns void

register

  • register(): void
  • Returns void

remove

Protected shouldPass

  • shouldPass(): boolean
  • Whether the status effect should pass (be removed from the human).

    Returns boolean

toggle

Static getDefaultRenderer

Static update

Generated using TypeDoc