跳到主要内容

Class: EffectTypes

Represents a type of effect - like poison - that can be applied to an entity.

Constructors

new EffectTypes()

private new EffectTypes(): EffectTypes

Returns

EffectTypes

Methods

get()

static get(identifier): EffectType

Parameters

ParameterType
identifierstring

Returns

EffectType

Effect type for the given identifier or undefined if the effect does not exist.

Remarks

Effect type for the given identifier.

This function can't be called in read-only mode.


getAll()

static getAll(): EffectType[]

Returns

EffectType[]

A list of all effects.

Remarks

Gets all effects.

This function can't be called in read-only mode.