Class EntityEventView
java.lang.Object
com.hypixel.hytale.server.npc.blackboard.view.event.EventView<EntityEventView,EntityEventType,EntityEventNotification>
com.hypixel.hytale.server.npc.blackboard.view.event.entity.EntityEventView
- All Implemented Interfaces:
IBlackboardView<EntityEventView>
public class EntityEventView
extends EventView<EntityEventView,EntityEventType,EntityEventNotification>
-
Field Summary
Fields inherited from class com.hypixel.hytale.server.npc.blackboard.view.event.EventView
entityMapsByEventType, entityStoreRegistry, eventRegistry, eventTypes, reusableEventNotification, shutdown, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUpdatedView(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) voidinitialiseEntity(Ref<EntityStore> ref, NPCEntity npcComponent) protected voidonEvent(int senderTypeId, double x, double y, double z, Ref<EntityStore> initiator, Ref<EntityStore> skip, ComponentAccessor<EntityStore> componentAccessor, EntityEventType type) private voidvoidprocessAttackedEvent(Ref<EntityStore> victim, Ref<EntityStore> attacker, ComponentAccessor<EntityStore> componentAccessor, EntityEventType eventType) Methods inherited from class com.hypixel.hytale.server.npc.blackboard.view.event.EventView
cleanup, forEach, getSetCount, isOutdated, onWorldRemoved
-
Constructor Details
-
EntityEventView
-
-
Method Details
-
getUpdatedView
public EntityEventView getUpdatedView(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
initialiseEntity
-
onEvent
protected void onEvent(int senderTypeId, double x, double y, double z, Ref<EntityStore> initiator, @Nonnull Ref<EntityStore> skip, @Nonnull ComponentAccessor<EntityStore> componentAccessor, EntityEventType type) - Overrides:
onEventin classEventView<EntityEventView,EntityEventType, EntityEventNotification>
-
onPlayerInteraction
-
processAttackedEvent
public void processAttackedEvent(@Nonnull Ref<EntityStore> victim, @Nonnull Ref<EntityStore> attacker, @Nonnull ComponentAccessor<EntityStore> componentAccessor, EntityEventType eventType)
-