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/PotionEffectType.md.

Class: PotionEffectType

effect

Beta

表示一种药水效果类型,例如治疗或跳跃提升。

Represents a type of potion effect - like healing or leaping.

Properties

durationTicks?

readonly optional durationTicks?: number

Beta

Remarks

效果应用于实体时的持续时间(以刻为单位)。undefined 表示效果不会过期。

Duration of the effect when applied to an entity in ticks. Undefined means the effect does not expire.

Throws

This property can throw when used.

EngineError


id

readonly id: string

Beta

同领域相关