Class WorldEventSystem<ECS_TYPE, EventType extends EcsEvent>

java.lang.Object
com.hypixel.hytale.component.system.EventSystem<EventType>
com.hypixel.hytale.component.system.WorldEventSystem<ECS_TYPE, EventType>
Type Parameters:
ECS_TYPE - the type of the ECS store
EventType - the type of event this system handles
All Implemented Interfaces:
ISystem<ECS_TYPE>
Direct Known Subclasses:
BuilderToolsPlugin.PrefabPasteEventSystem, MoonPhaseChangeEventSystem, NPCSystems.PrefabPlaceEntityEventSystem, PointPasteHandler, PrefabPathSystems.PrefabPlaceEntityEventSystem, TriggerVolumeBlockEventSystems.EnvironmentBlockBroken, TriggerVolumePasteHandler, TriggerVolumePrefabPasteRemapSystem

public abstract class WorldEventSystem<ECS_TYPE, EventType extends EcsEvent> extends EventSystem<EventType> implements ISystem<ECS_TYPE>
A system that processes events of a specific type at the world level.
  • Method Details

    • handle

      public abstract void handle(@Nonnull Store<ECS_TYPE> store, @Nonnull CommandBuffer<ECS_TYPE> commandBuffer, @Nonnull EventType event)
      An overrideable method called to handle an event.
      Parameters:
      store - The ECS store.
      commandBuffer - The command buffer for queuing ECS commands.
      event - The event to be handled.
    • handleInternal

      public void handleInternal(@Nonnull Store<ECS_TYPE> store, @Nonnull CommandBuffer<ECS_TYPE> commandBuffer, @Nonnull EventType event)
      Called to handle an event, unless the event is cancelled.
      Parameters:
      store - The ECS store.
      commandBuffer - The command buffer for queuing ECS commands.
      event - The event to be handled.