BedrioxDOCUMENTATION
API CLASS

EffectManager

Immutable effect snapshot with generation-bound authoritative mutations.

Bedriox\Api\Effect\EffectManager
classBedriox\Api\Effect

Public methods

__construct(array $effects, Bedriox\Api\Effect\EffectActions $actions)

Typed public method.

all(): array

Typed public method.

get(Bedriox\Api\Effect\EffectType $type): ?Bedriox\Api\Effect\EffectInstance

Typed public method.

has(Bedriox\Api\Effect\EffectType $type): bool

Typed public method.

add(Bedriox\Api\Effect\EffectInstance $effect, Bedriox\Api\Effect\EffectCause $cause = \Bedriox\Api\Effect\EffectCause::PLUGIN): void

Typed public method.

remove(Bedriox\Api\Effect\EffectType $type, Bedriox\Api\Effect\EffectCause $cause = \Bedriox\Api\Effect\EffectCause::PLUGIN): void

Typed public method.

clear(Bedriox\Api\Effect\EffectCause $cause = \Bedriox\Api\Effect\EffectCause::PLUGIN): void

Typed public method.

View exact source ↗