Represents the event registrar lifecycle point and exposes its typed Bedriox values to registered plugin listeners.
EventRegistrar
Typed Bedriox event for plugin listeners.
Typed eventBedriox\Api\Event
Bedriox dispatches this at the typed lifecycle point represented by the event. Check the available values below before acting.
Available methods
listen(string $eventClass, callable $listener, Bedriox\Api\Event\EventPriority $priority = \Bedriox\Api\Event\EventPriority::NORMAL, bool $receiveCancelled = false): Bedriox\Api\Event\ListenerSubscriptionTyped public method.
registerSubscriber(object $subscriber): voidTyped public method.
Listen for this event
Register the containing object with PluginContext::events()->registerSubscriber($this), then add a typed handler:
use Bedriox\Api\Event\EventHandler;
use Bedriox\Api\Event\EventRegistrar;
#[EventHandler]
public function onEventRegistrar(EventRegistrar $event): void
{
// Keep listener work bounded and use public capabilities only.
}