For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/EffectTypes.md.

Class: EffectTypes

effect

Beta

表示一种效果类型——例如中毒——可以应用于实体。

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

Methods

get()

static get(identifier): EffectType | undefined

World Mutation Beta

Parameters

identifier

string

效果的标识符。

The identifier for the effect.

Returns

EffectType | undefined

返回给定标识符的效果类型,如果效果不存在则返回 undefined

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

Remarks

获取给定标识符的效果类型。

Effect type for the given identifier.


getAll()

static getAll(): EffectType[]

World Mutation Beta

Returns

EffectType[]

所有效果的列表。

A list of all effects.

Remarks

获取所有效果。

Gets all effects.

同领域相关