Class ActionList

java.lang.Object
com.hypixel.hytale.server.npc.instructions.ActionList

public class ActionList extends Object
  • Field Details

    • EMPTY_ACTION_LIST

      public static final ActionList EMPTY_ACTION_LIST
    • actions

      @Nonnull protected final Action[] actions
    • blocking

      protected boolean blocking
    • atomic

      protected boolean atomic
    • actionIndex

      protected int actionIndex
  • Constructor Details

    • ActionList

      public ActionList(@Nonnull Action[] actions)
  • Method Details

    • setBlocking

      public void setBlocking(boolean blocking)
    • setAtomic

      public void setAtomic(boolean atomic)
    • canExecute

      public boolean canExecute(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, InfoProvider sensorInfo, double dt, @Nonnull Store<EntityStore> store)
    • execute

      public boolean execute(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, InfoProvider sensorInfo, double dt, @Nonnull Store<EntityStore> store)
    • hasCompletedRun

      public boolean hasCompletedRun()
    • setContext

      public void setContext(IAnnotatedComponent parent)
    • registerWithSupport

      public void registerWithSupport(Role role)
    • motionControllerChanged

      public void motionControllerChanged(@Nullable Ref<EntityStore> ref, @Nonnull NPCEntity npcComponent, com.hypixel.hytale.server.npc.movement.controllers.MotionController motionController, @Nullable ComponentAccessor<EntityStore> componentAccessor)
    • loaded

      public void loaded(Role role)
    • spawned

      public void spawned(Role role)
    • unloaded

      public void unloaded(Role role)
    • removed

      public void removed(Role role)
    • teleported

      public void teleported(Role role, World from, World to)
    • clearOnce

      public void clearOnce()
    • onEndMotion

      public void onEndMotion()
    • setOnce

      public void setOnce()
    • actionCount

      public int actionCount()
    • getComponent

      public IAnnotatedComponent getComponent(int index)