Package com.pixelmonmod.pixelmon.ai
Class TargetNearestGoalInFieldOfView
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
com.pixelmonmod.pixelmon.ai.TargetGoal
com.pixelmonmod.pixelmon.ai.TargetNearestGoal
com.pixelmonmod.pixelmon.ai.TargetNearestGoalInFieldOfView
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.Goal.Flag
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.ai.TargetGoal
shouldCheckSight, targetDistance, taskOwner
-
Constructor Summary
ConstructorDescriptionTargetNearestGoalInFieldOfView
(net.minecraft.world.entity.Mob entity, float targetRange, boolean shouldCheckSight) TargetNearestGoalInFieldOfView
(net.minecraft.world.entity.Mob entity, float targetRange, boolean shouldCheckSight, boolean mustReach) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canUse()
Returns whether the EntityAIBase should begin execution.void
setTargetDistance
(float targetDistance) void
start()
Execute a one shot task or start executing a continuous taskMethods inherited from class com.pixelmonmod.pixelmon.ai.TargetNearestGoal
canContinueToUse, stop, tick
Methods inherited from class com.pixelmonmod.pixelmon.ai.TargetGoal
isSuitableTarget
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
-
Constructor Details
-
TargetNearestGoalInFieldOfView
public TargetNearestGoalInFieldOfView(net.minecraft.world.entity.Mob entity, float targetRange, boolean shouldCheckSight) -
TargetNearestGoalInFieldOfView
public TargetNearestGoalInFieldOfView(net.minecraft.world.entity.Mob entity, float targetRange, boolean shouldCheckSight, boolean mustReach)
-
-
Method Details
-
setTargetDistance
public void setTargetDistance(float targetDistance) - Overrides:
setTargetDistance
in classTargetNearestGoal
-
canUse
public boolean canUse()Description copied from class:TargetNearestGoal
Returns whether the EntityAIBase should begin execution.- Overrides:
canUse
in classTargetNearestGoal
-
start
public void start()Description copied from class:TargetNearestGoal
Execute a one shot task or start executing a continuous task- Overrides:
start
in classTargetNearestGoal
-