Class MycelEvents
java.lang.Object
my.celium.org.event.MycelEvents
Tiny loader-independent event hub.
Mycel deliberately exposes only a handful of shared events (join, leave, server lifecycle, entity replacement). Everything else should use the loader's native event bus directly - the goal is to hide repetitive loader differences, not to reinvent Minecraft's event systems.
All events fire on the server thread. A throwing listener is logged and skipped so one bad handler cannot break the others.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidonEntityReplaced(Consumer<EntityReplacedEvent> listener) static voidonPlayerJoin(Consumer<PlayerJoinEvent> listener) static voidonPlayerLeave(Consumer<PlayerLeaveEvent> listener) static voidonServerLifecycle(Consumer<ServerLifecycleEvent> listener)
-
Method Details
-
onPlayerJoin
-
onPlayerLeave
-
onServerLifecycle
-
onEntityReplaced
-