Interface TargetGoal<A extends TargetGoal<A>>

    • Method Detail

      • shouldCheckSight

        boolean shouldCheckSight()
        Gets whether the owning Agent can visibly "see" the Entity being targeted such that any BlockTypes that are visibly opaque will prevent the owning Agent from targeting that Entity.
        Returns:
        Whether line of sight is required to target an entity
      • setCheckSight

        A setCheckSight​(boolean checkSight)
        Sets whether the owning Agent can visibly "see" the Entity being targeted such that any BlockTypes that are visibly opaque will prevent the owning Agent from targeting that Entity.
        Parameters:
        checkSight - Whether line of sight is required to target
        Returns:
        This goal, for chaining
      • shouldCheckOnlyNearby

        boolean shouldCheckOnlyNearby()
        Gets whether an Entity can only be targeted within a "short" radius from the owning Agent.
        Returns:
        Whether only nearby entities can be targeted
      • setCheckOnlyNearby

        A setCheckOnlyNearby​(boolean nearby)
        Sets whether an Entity can only be targeted within a "short" radius from the owning Agent.
        Parameters:
        nearby - Whether only nearby entities can be targeted
        Returns:
        This goal, for chaining