BedrioxDOCUMENTATION
API CLASS

EffectInstance

Immutable effect value expressed in simulation ticks. Amplifier zero is level one.

Bedriox\Api\Effect\EffectInstance
classBedriox\Api\Effect

Public methods

__construct(Bedriox\Api\Effect\EffectType $type, int $durationTicks, int $amplifier = 0, bool $visible = true, bool $ambient = false, bool $infinite = false)

Typed public method.

level(): int

Typed public method.

remainingAfter(int $ticks): self

Typed public method.

Constants

MAXIMUM_DURATION_TICKSMAXIMUM_AMPLIFIER

View exact source ↗