Contents
Class EntityEventSupport
java.lang.Object
com.hypixel.hytale.server.npc.components.messaging.MessageSupport
com.hypixel.hytale.server.npc.components.messaging.EventSupport<EntityEventType, EntityEventNotification>
com.hypixel.hytale.server.npc.components.messaging.EntityEventSupport
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
- Direct Known Subclasses:
NPCEntityEventSupport, PlayerEntityEventSupport
public abstract class EntityEventSupport
extends EventSupport<EntityEventType, EntityEventNotification>
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasFlockMatchingMessage(int messageIndex, org.joml.Vector3d parentPosition, double range, boolean flockOnly) voidpostMessage(EntityEventType type, EntityEventNotification notification, Ref<EntityStore> parent, ComponentAccessor<EntityStore> accessor) Methods inherited from class EventSupport
cloneTo, getMessageSlot, getMessageSlots, hasMatchingMessage, initialise, pollMessageMethods inherited from class MessageSupport
clone, isMessageEnabled, isMessageQueuedMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
EntityEventSupport
public EntityEventSupport()
-
-
Method Details
-
postMessage
public void postMessage(EntityEventType type, @Nonnull EntityEventNotification notification, @Nonnull Ref<EntityStore> parent, @Nonnull ComponentAccessor<EntityStore> accessor) - Overrides:
postMessagein classEventSupport<EntityEventType, EntityEventNotification>
-
hasFlockMatchingMessage
public boolean hasFlockMatchingMessage(int messageIndex, @Nonnull org.joml.Vector3d parentPosition, double range, boolean flockOnly)
-