Class: EffectTypes
effectBeta
表示一种效果类型——例如中毒——可以应用于实体。
Represents a type of effect - like poison - that can be applied to an entity.
Methods
get()
staticget(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()
staticgetAll():EffectType[]
World Mutation Beta
Returns
所有效果的列表。
A list of all effects.
Remarks
获取所有效果。
Gets all effects.
