Interface HytaleEventRegistry

All Superinterfaces:
CustomEventRegistry<EventSubscription<?>,Short>

public interface HytaleEventRegistry extends CustomEventRegistry<EventSubscription<?>,Short>
Hytale-specific extension of CustomEventRegistry that exposes ECS system registration without requiring reflection.

Modules cast the registry received in GameModule.registerEvents() to this interface when they need to register ECS systems:


 if (registry instanceof HytaleEventRegistry hytaleRegistry) {
     hytaleRegistry.registerSystem(new MySystem(game));
 }
 
Since:
3.3
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Register an ECS system (EntityEventSystem, EntityTickingSystem, RefChangeSystem or ISystem).

    Methods inherited from interface net.blueva.arcade.api.events.CustomEventRegistry

    register, register, unregisterAll
  • Method Details

    • registerSystem

      void registerSystem(Object system)
      Register an ECS system (EntityEventSystem, EntityTickingSystem, RefChangeSystem or ISystem). The implementation dispatches to the appropriate typed overload at runtime.
      Parameters:
      system - system to register