Class EventSupport<EventType extends Enum<EventType>,NotificationType extends EventNotification>
java.lang.Object
com.hypixel.hytale.server.npc.components.messaging.MessageSupport
com.hypixel.hytale.server.npc.components.messaging.EventSupport<EventType,NotificationType>
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
- Direct Known Subclasses:
EntityEventSupport,NPCBlockEventSupport,PlayerBlockEventSupport
public abstract class EventSupport<EventType extends Enum<EventType>,NotificationType extends EventNotification>
extends MessageSupport
-
Field Summary
FieldsFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloneTo(EventSupport<EventType, NotificationType> other) getMessageSlot(EventType type, NotificationType notification) booleanhasMatchingMessage(int messageIndex, Vector3d parentPosition, double range) voidinitialise(Map<EventType, it.unimi.dsi.fastutil.ints.Int2IntMap> setIndices, it.unimi.dsi.fastutil.ints.Int2DoubleMap messageRanges, int count) pollMessage(int messageIndex) voidpostMessage(EventType type, NotificationType notification, Ref<EntityStore> parent, Store<EntityStore> store) Methods inherited from class com.hypixel.hytale.server.npc.components.messaging.MessageSupport
clone, isMessageEnabled, isMessageQueuedMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
EVENT_AGE
protected static final double EVENT_AGE- See Also:
-
messageSlots
-
messageIndices
-
-
Constructor Details
-
EventSupport
public EventSupport()
-
-
Method Details
-
postMessage
public void postMessage(EventType type, @Nonnull NotificationType notification, @Nonnull Ref<EntityStore> parent, @Nonnull Store<EntityStore> store) -
getMessageSlot
@Nullable public EventMessage getMessageSlot(EventType type, @Nonnull NotificationType notification) -
hasMatchingMessage
-
pollMessage
-
initialise
-
cloneTo
-
getMessageSlots
- Specified by:
getMessageSlotsin classMessageSupport
-