BedrioxDOCUMENTATION
API CLASS

EntityTargetEvent

Cancellable, adjustable target transition before authoritative commit.

Bedriox\Api\Event\Entity\EntityTargetEvent
classBedriox\Api\Event\Entity

Public methods

__construct(Bedriox\Api\Entity\Mob $entity, Bedriox\Api\Entity\Entity|Bedriox\Api\Player\Player|null $previousTarget, Bedriox\Api\Entity\Entity|Bedriox\Api\Player\Player|null $target, Bedriox\Api\Entity\EntityTargetReason $reason)

Typed public method.

target(): Bedriox\Api\Entity\Entity|Bedriox\Api\Player\Player|null

Typed public method.

setTarget(Bedriox\Api\Entity\Entity|Bedriox\Api\Player\Player|null $target): void

Typed public method.

View exact source ↗