Package net.minecraft.entity.ai.goal
Class WanderNearTargetGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.WanderNearTargetGoal
public class WanderNearTargetGoal extends Goal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
Fields Modifier and Type Field Description private floatmaxDistanceprivate PathAwareEntitymobprivate doublespeedprivate LivingEntitytargetprivate doublexprivate doubleyprivate doublez -
Constructor Summary
Constructors Constructor Description WanderNearTargetGoal(PathAwareEntity mob, double speed, float maxDistance) -
Method Summary
Modifier and Type Method Description booleancanStart()booleanshouldContinue()voidstart()voidstop()Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, tick, toString
-
Field Details
-
mob
-
target
-
x
private double x -
y
private double y -
z
private double z -
speed
private final double speed -
maxDistance
private final float maxDistance
-
-
Constructor Details
-
WanderNearTargetGoal
-
-
Method Details