Skip to content

@minecraft/server


@minecraft/server / EffectTypes

Class: EffectTypes ​

Defined in: @minecraft/server/index.d.ts:8286

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

Methods ​

get() ​

static get(identifier): EffectType | undefined

Defined in: @minecraft/server/index.d.ts:8300

Parameters ​

identifier ​

string

The identifier for the effect.

Returns ​

EffectType | undefined

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 restricted-execution mode.


getAll() ​

static getAll(): EffectType[]

Defined in: @minecraft/server/index.d.ts:8310

Returns ​

EffectType[]

A list of all effects.

Remarks ​

Gets all effects.

This function can't be called in restricted-execution mode.