Class EntitySupport

java.lang.Object
com.hypixel.hytale.server.npc.role.support.EntitySupport

public class EntitySupport extends Object
  • Field Details

    • parent

      protected final NPCEntity parent
    • displayNames

      @Nullable protected final String[] displayNames
    • nominatedDisplayName

      @Nullable protected String nominatedDisplayName
    • sensorScope

      protected StdScope sensorScope
    • nextBodyMotionStep

      @Nullable protected Instruction nextBodyMotionStep
    • nextHeadMotionStep

      @Nullable protected Instruction nextHeadMotionStep
    • delayingComponents

      protected final List<IComponentExecutionControl> delayingComponents
    • targetPlayerActiveTasks

      @Nullable protected List<String> targetPlayerActiveTasks
  • Constructor Details

  • Method Details

    • getSensorScope

      public StdScope getSensorScope()
    • getNextBodyMotionStep

      @Nullable public Instruction getNextBodyMotionStep()
    • setNextBodyMotionStep

      public boolean setNextBodyMotionStep(Instruction step)
    • clearNextBodyMotionStep

      public void clearNextBodyMotionStep()
    • getNextHeadMotionStep

      @Nullable public Instruction getNextHeadMotionStep()
    • setNextHeadMotionStep

      public boolean setNextHeadMotionStep(Instruction step)
    • clearNextHeadMotionStep

      public void clearNextHeadMotionStep()
    • postRoleBuilt

      public void postRoleBuilt(@Nonnull BuilderSupport builderSupport)
    • tick

      public void tick(float dt)
    • handleNominatedDisplayName

      public void handleNominatedDisplayName(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • nominateDisplayName

      public void nominateDisplayName(@Nonnull String displayName)
    • pickRandomDisplayName

      public void pickRandomDisplayName(@Nonnull Holder<EntityStore> holder, boolean override)
    • setDisplayName

      public static void setDisplayName(@Nonnull Holder<EntityStore> holder, @Nonnull String displayName)
    • setDisplayName

      public static void setDisplayName(@Nonnull Holder<EntityStore> holder, @Nullable String displayName, boolean override)
    • pickRandomDisplayName

      public void pickRandomDisplayName(@Nonnull Ref<EntityStore> ref, boolean override, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • setRandomDisplayName

      public static void setRandomDisplayName(@Nonnull Ref<EntityStore> ref, @Nullable String[] names, boolean override, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • setDisplayName

      public static void setDisplayName(@Nonnull Ref<EntityStore> ref, @Nonnull String displayName, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • setDisplayName

      public static void setDisplayName(@Nonnull Ref<EntityStore> ref, @Nullable String displayName, boolean override, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • addTargetPlayerActiveTask

      public void addTargetPlayerActiveTask(@Nonnull String task)
    • clearTargetPlayerActiveTasks

      public void clearTargetPlayerActiveTasks()
    • getTargetPlayerActiveTasks

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

      public void registerDelay(@Nonnull IComponentExecutionControl component)
    • createScope

      @Nonnull public static StdScope createScope(@Nonnull NPCEntity entity)