Interface LookAtGoal

    • Method Detail

      • watchedClass

        java.lang.Class<? extends Living> watchedClass()
        Gets the Class of the Living type to "stare" or "watch" when that type of entity is nearby.
        Returns:
        The class of entity to "watch"
      • setWatchedClass

        LookAtGoal setWatchedClass​(java.lang.Class<? extends Living> watchedClass)
        Sets the Class of the Living type to "stare" or "watch" when that type of entity is nearby.
        Parameters:
        watchedClass - The class of entity to "watch"
        Returns:
        This goal, for chaining
      • maxDistance

        float maxDistance()
        Gets the maximum distance to "watch" a targeted Living.
        Returns:
        The distance to watch a targeted entity
      • setMaxDistance

        LookAtGoal setMaxDistance​(float maxDistance)
        Sets the maximum distance to "watch" a targeted Living.
        Parameters:
        maxDistance - The maximum distance to watch an entity
        Returns:
        This goal, for chaining
      • chance

        float chance()
        Gets the chance that an Entity will "watch" a targeted Living.
        Returns:
        The chance to watch
      • setChance

        LookAtGoal setChance​(float chance)
        SEts the chance to "watch" a targeted Living.
        Parameters:
        chance - The chance to "watch"
        Returns:
        This goal, for chaining