java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.AIHelper

public class AIHelper extends Object
Initializes AI for the Pokémon.
  • Constructor Details

    • AIHelper

      public AIHelper()
  • Method Details

    • populateTasks

      public void populateTasks(AbstractInteractionsEntity entity, net.minecraft.world.entity.ai.goal.GoalSelector tasks)
    • createNavigator

      public net.minecraft.world.entity.ai.navigation.PathNavigation createNavigator(AbstractInteractionsEntity pixelmon)
    • canSeeTargetWithinFieldOfView

      public static boolean canSeeTargetWithinFieldOfView(net.minecraft.world.entity.Mob seeker, net.minecraft.world.entity.LivingEntity target)
      Returns true if the given target can be seen within a 90 degree FOV of the seeker.
      Parameters:
      seeker - A Mob that has the capability of sensing entities.
      target - A Living Entity that has a position and bounding box.
      Returns:
      True if the target can be seen by the seeker.