Contents
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 storeEventType- 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.
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionabstract voidAn overrideable method called to handle an event.voidhandleInternal(Store<ECS_TYPE> store, CommandBuffer<ECS_TYPE> commandBuffer, EventType event) Called to handle an event, unless the event is cancelled.Methods inherited from class EventSystem
getEventTypeMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISystem
getDependencies, getGroup, onSystemRegistered, onSystemUnregistered
-
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.
-