Class PlayerTaskSupport

java.lang.Object
com.hypixel.hytale.server.npc.role.support.PlayerTaskSupport
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class PlayerTaskSupport extends Object implements Component<EntityStore>
ECS component holding the target player's active interaction-task list.
  • Constructor Details

    • PlayerTaskSupport

      public PlayerTaskSupport()
  • Method Details

    • getComponentType

      @Nonnull public static ComponentType<EntityStore, PlayerTaskSupport> getComponentType()
    • addTargetPlayerActiveTask

      public void addTargetPlayerActiveTask(@Nonnull String task)
      Append an active task identifier for the target player. Lazily allocates the list on first add.
    • clearTargetPlayerActiveTasks

      public void clearTargetPlayerActiveTasks()
    • getTargetPlayerActiveTasks

      @Nullable public List<String> getTargetPlayerActiveTasks()
    • clone

      public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Returns:
      a clone instance of the original component instance.