Package net.minecraft.entity.ai.goal
Class EscapeSunlightGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.EscapeSunlightGoal
- Direct Known Subclasses:
FoxEntity.AvoidDaylightGoal
public class EscapeSunlightGoal extends Goal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EscapeSunlightGoal(PathAwareEntity mob, double speed)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
protected Vec3d
locateShadedPos()
boolean
shouldContinue()
void
start()
protected boolean
targetShadedPos()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, stop, tick, toString
-
Field Details
-
mob
-
targetX
private double targetX -
targetY
private double targetY -
targetZ
private double targetZ -
speed
private final double speed -
world
-
-
Constructor Details
-
EscapeSunlightGoal
-
-
Method Details