Gets an amplifier that may have been applied to this effect.
Sample values range typically from 0 to 4. Example: The
effect 'Jump Boost II' will have an amplifier value of 1.
抛出
This property can throw when used.
只读实验性displayName
displayName:string
备注
Gets the player-friendly name of this effect.
抛出
This property can throw when used.
只读实验性duration
duration:number
备注
Gets the entire specified duration, in ticks, of this
effect. There are 20 ticks per second. Use TicksPerSecond constant to convert between ticks and
seconds.
抛出
This property can throw when used.
只读实验性typeId
typeId:string
备注
Gets the type id of this effect.
抛出
This property can throw when used.
方法
isValid
isValid(): boolean
实验性
返回 boolean
备注
Returns whether an effect instance is available for use in
this context.
Represents an effect - like poison - that has been added to an Entity.