Class FindTargetGoal<T extends MobEntity>

java.lang.Object
me.arcademadness.omni_dungeon.controllers.goals.FindTargetGoal<T>
All Implemented Interfaces:
Goal<T>

public class FindTargetGoal<T extends MobEntity> extends Object implements Goal<T>
  • Constructor Details

    • FindTargetGoal

      public FindTargetGoal(int priority, int scanRadius)
  • Method Details

    • getPriority

      public int getPriority()
      Description copied from interface: Goal
      Lower number = higher priority. E.g., 0 = highest.
      Specified by:
      getPriority in interface Goal<T extends MobEntity>
    • shouldActivate

      public boolean shouldActivate(T entity)
      Specified by:
      shouldActivate in interface Goal<T extends MobEntity>
      Returns:
      if this goal should be activated
    • computeIntent

      public Optional<ControlIntent> computeIntent(T entity)
      Description copied from interface: Goal
      Returns an optional ControlIntent if this goal wants the entity to act.
      Specified by:
      computeIntent in interface Goal<T extends MobEntity>