Class ActionFlockBeacon
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.ActionBase
com.hypixel.hytale.server.flock.corecomponents.ActionFlockBeacon
- All Implemented Interfaces:
Action,RoleStateChange,IAnnotatedComponent,IComponentExecutionControl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final ComponentType<EntityStore, BeaconSupport> protected static final ComponentType<EntityStore, EntityGroup> protected final doubleprotected static final ComponentType<EntityStore, FlockMembership> protected final Stringprotected final intprotected final booleanprotected final booleanFields inherited from class com.hypixel.hytale.server.npc.corecomponents.ActionBase
active, once, triggeredFields inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
index, parentFields inherited from interface com.hypixel.hytale.server.npc.instructions.Action
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionActionFlockBeacon(BuilderActionFlockBeacon builderActionFlockBeacon, BuilderSupport builderSupport) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanExecute(Ref<EntityStore> ref, Role role, InfoProvider sensorInfo, double dt, Store<EntityStore> store) booleanexecute(Ref<EntityStore> ref, Role role, InfoProvider sensorInfo, double dt, Store<EntityStore> store) protected voidsendNPCMessage(Ref<EntityStore> ref, Ref<EntityStore> targetRef, ComponentAccessor<EntityStore> componentAccessor) Methods inherited from class com.hypixel.hytale.server.npc.corecomponents.ActionBase
activate, clearOnce, deactivate, isActivated, isTriggered, processDelay, setOnceMethods inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
getIndex, getInfo, getParent, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.npc.util.IAnnotatedComponent
getBreadCrumbs, getBreadCrumbs, getIndex, getInfo, getLabel, getParent, setContextMethods inherited from interface com.hypixel.hytale.server.npc.instructions.RoleStateChange
loaded, motionControllerChanged, registerWithSupport, removed, spawned, teleported, unloaded
-
Field Details
-
BEACON_SUPPORT_COMPONENT_TYPE
-
FLOCK_MEMBERSHIP_COMPONENT_TYPE
-
ENTITY_GROUP_COMPONENT_TYPE
-
message
-
expirationTime
protected final double expirationTime -
sendToSelf
protected final boolean sendToSelf -
sendToLeaderOnly
protected final boolean sendToLeaderOnly -
sendTargetSlot
protected final int sendTargetSlot
-
-
Constructor Details
-
ActionFlockBeacon
public ActionFlockBeacon(@Nonnull BuilderActionFlockBeacon builderActionFlockBeacon, @Nonnull BuilderSupport builderSupport)
-
-
Method Details
-
canExecute
public boolean canExecute(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, InfoProvider sensorInfo, double dt, @Nonnull Store<EntityStore> store) - Specified by:
canExecutein interfaceAction- Overrides:
canExecutein classActionBase
-
execute
public boolean execute(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, InfoProvider sensorInfo, double dt, @Nonnull Store<EntityStore> store) - Specified by:
executein interfaceAction- Overrides:
executein classActionBase
-
sendNPCMessage
protected void sendNPCMessage(@Nonnull Ref<EntityStore> ref, @Nullable Ref<EntityStore> targetRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
-