Contents
Class BeaconSupport
java.lang.Object
com.hypixel.hytale.server.npc.components.messaging.MessageSupport
com.hypixel.hytale.server.npc.components.messaging.BeaconSupport
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
Tracks beacon messages to be interpreted by the NPC, mapped to different slots depending on the message identifier.
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComponentType<EntityStore, BeaconSupport> getMessageTextForIndex(int messageIndex) voidinitialise(it.unimi.dsi.fastutil.objects.Object2IntMap<String> messageIndices) peekMessage(int messageIndex) pollMessage(int messageIndex) voidpostMessage(String message, Ref<EntityStore> target, double age) Methods inherited from class MessageSupport
isMessageEnabled, isMessageQueuedMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
BeaconSupport
public BeaconSupport()
-
-
Method Details
-
getComponentType
-
postMessage
-
pollMessage
-
peekMessage
-
initialise
-
getMessageTextForIndex
-
getMessageSlots
- Specified by:
getMessageSlotsin classMessageSupport
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Specified by:
clonein classMessageSupport- Returns:
- a clone instance of the original component instance.
-