Class AIHelper
java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.AIHelper
Initializes AI for the Pokémon.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.net.minecraft.world.entity.ai.navigation.PathNavigation
createNavigator
(AbstractInteractionsEntity pixelmon) void
populateTasks
(AbstractInteractionsEntity entity, net.minecraft.world.entity.ai.goal.GoalSelector tasks)
-
Constructor Details
-
AIHelper
public AIHelper()
-
-
Method Details
-
populateTasks
public void populateTasks(AbstractInteractionsEntity entity, net.minecraft.world.entity.ai.goal.GoalSelector tasks) -
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.
-