BedrioxDOCUMENTATION
API CLASS

EntityEffectAddEvent

Cancellable, adjustable intent emitted before an authoritative effect mutation.

Bedriox\Api\Event\Entity\EntityEffectAddEvent
classBedriox\Api\Event\Entity

Public methods

__construct(Bedriox\Api\Entity\LivingEntity|Bedriox\Api\Player\Player $entity, Bedriox\Api\Effect\EffectInstance $effect, Bedriox\Api\Effect\EffectCause $cause, ?Bedriox\Api\Effect\EffectInstance $previous)

Typed public method.

effect(): Bedriox\Api\Effect\EffectInstance

Typed public method.

setEffect(Bedriox\Api\Effect\EffectInstance $effect): void

Typed public method.

View exact source ↗