Contents
Class ActionAdjustPortalTimer
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.ActionBase
com.hypixel.hytale.builtin.portals.npc.ActionAdjustPortalTimer
- All Implemented Interfaces:
Action, RoleStateChange, IAnnotatedComponent, IComponentExecutionControl
Encounter-only action that adds
seconds to the current portal/fragment world's remaining timer.
Positive extends, negative reduces (floored at 0 by PortalWorld.setRemainingSeconds(World, double, boolean)). No effect
outside a portal world.-
Field Summary
Fields inherited from interface Action
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionActionAdjustPortalTimer(BuilderActionAdjustPortalTimer builder, BuilderSupport builderSupport) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(Ref<EntityStore> ref, ExecutionSupport executionSupport, InfoProvider sensorInfo, double dt, Store<EntityStore> store) Execute actionMethods inherited from class ActionBase
activate, canExecute, clearOnce, deactivate, isActivated, isTriggered, processDelay, setOnceMethods inherited from class AnnotatedComponentBase
getIndex, getInfo, getParent, setContextMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IAnnotatedComponent
getBreadCrumbs, getBreadCrumbs, getIndex, getInfo, getLabel, getParent, setContextMethods inherited from interface RoleStateChange
loaded, motionControllerChanged, registerWithSupport, removed, spawned, teleported, unloaded
-
Constructor Details
-
ActionAdjustPortalTimer
public ActionAdjustPortalTimer(@Nonnull BuilderActionAdjustPortalTimer builder, @Nonnull BuilderSupport builderSupport)
-
-
Method Details
-
execute
public boolean execute(@Nonnull Ref<EntityStore> ref, @Nonnull ExecutionSupport executionSupport, @Nullable InfoProvider sensorInfo, double dt, @Nonnull Store<EntityStore> store) Description copied from interface:ActionExecute action- Specified by:
executein interfaceAction- Overrides:
executein classActionBase- Parameters:
ref- The entity refexecutionSupport- The execution supportsensorInfo- SensorInfo with PositionProvider, PathProvider, etc if requireddt- The interval in seconds for this calculationstore- The component store- Returns:
- true when executed action has finished else false when execution is not completed yet
-