Class ActionCombatAbility
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.ActionBase
com.hypixel.hytale.builtin.npccombatactionevaluator.corecomponents.ActionCombatAbility
- All Implemented Interfaces:
Action,RoleStateChange,IAnnotatedComponent,IComponentExecutionControl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected DoubleParameterProviderprotected static final ComponentType<EntityStore, CombatActionEvaluator> protected final intprotected booleanprotected final doubleprotected static final floatprotected final intprotected static final ComponentType<EntityStore, TransformComponent> Fields 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
ConstructorsConstructorDescriptionActionCombatAbility(BuilderActionCombatAbility builder, BuilderSupport builderSupport) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(Role role, InfoProvider infoProvider) booleancanExecute(Ref<EntityStore> ref, Role role, InfoProvider sensorInfo, double dt, Store<EntityStore> store) voiddeactivate(Role role, InfoProvider infoProvider) booleanexecute(Ref<EntityStore> ref, Role role, InfoProvider sensorInfo, double dt, Store<EntityStore> store) Methods inherited from class com.hypixel.hytale.server.npc.corecomponents.ActionBase
clearOnce, 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
-
COMPONENT_TYPE
-
TRANSFORM_COMPONENT_TYPE
-
POSITIONING_ANGLE_THRESHOLD
protected static final float POSITIONING_ANGLE_THRESHOLD- See Also:
-
id
protected final int id -
positioningAngleProviderSlot
protected final int positioningAngleProviderSlot -
meleeConeAngle
protected final double meleeConeAngle- See Also:
-
attack
-
cachedPositioningAngleProvider
-
initialised
protected boolean initialised
-
-
Constructor Details
-
ActionCombatAbility
public ActionCombatAbility(@Nonnull BuilderActionCombatAbility builder, @Nonnull BuilderSupport builderSupport)
-
-
Method Details
-
canExecute
public boolean canExecute(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, @Nullable 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, @Nullable InfoProvider sensorInfo, double dt, @Nonnull Store<EntityStore> store) - Specified by:
executein interfaceAction- Overrides:
executein classActionBase
-
activate
- Specified by:
activatein interfaceAction- Overrides:
activatein classActionBase
-
deactivate
- Specified by:
deactivatein interfaceAction- Overrides:
deactivatein classActionBase
-