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 float
maxDistance
private PathAwareEntity
mob
private double
speed
private LivingEntity
target
private double
x
private double
y
private double
z
-
Constructor Summary
Constructors Constructor Description WanderNearTargetGoal(PathAwareEntity mob, double speed, float maxDistance)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
boolean
shouldContinue()
void
start()
void
stop()
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