Contents
Class EntityHolderEventSystem<ECS_TYPE, EventType extends EcsEvent>
java.lang.Object
com.hypixel.hytale.component.system.EventSystem<EventType>
com.hypixel.hytale.component.system.EntityHolderEventSystem<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>, QuerySystem<ECS_TYPE>
- Direct Known Subclasses:
InventorySystems.ActiveSlotChangedEntityHolderEventSystem, InventorySystems.ActiveSlotChangedToolsHolderEventSystem, ItemContainerSystems.OnCarriedHolder, ItemContainerSystems.OnReplacedHolder
public abstract class EntityHolderEventSystem<ECS_TYPE, EventType extends EcsEvent>
extends EventSystem<EventType>
implements QuerySystem<ECS_TYPE>
A system that processes events of a specific type for entity chunks.
-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionabstract voidhandle(Holder<ECS_TYPE> holder, Store<ECS_TYPE> store, CommandBuffer<ECS_TYPE> commandBuffer, EventType event) An overrideable method called to handle an event for a specific holder.voidhandleInternal(Holder<ECS_TYPE> holder, Store<ECS_TYPE> store, CommandBuffer<ECS_TYPE> commandBuffer, EventType event) Called to handle an event for a holder, 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, onSystemUnregisteredMethods inherited from interface QuerySystem
getHierarchyScope, getQuery, test
-
Method Details
-
handle
public abstract void handle(@Nonnull Holder<ECS_TYPE> holder, @Nonnull Store<ECS_TYPE> store, @Nonnull CommandBuffer<ECS_TYPE> commandBuffer, @Nonnull EventType event) An overrideable method called to handle an event for a specific holder.- Parameters:
holder- The holder containing the entity being processedstore- The ECS store.commandBuffer- The command buffer for queuing ECS commands.event- The event to be handled.
-
handleInternal
public void handleInternal(@Nonnull Holder<ECS_TYPE> holder, @Nonnull Store<ECS_TYPE> store, @Nonnull CommandBuffer<ECS_TYPE> commandBuffer, @Nonnull EventType event) Called to handle an event for a holder, unless the event is cancelled.- Parameters:
holder- The holder containing the entity being processedstore- The ECS store.commandBuffer- The command buffer for queuing ECS commands.event- The event to be handled.
-