Package net.minecraft.entity.passive
Class FoxEntity.AvoidDaylightGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.EscapeSunlightGoal
net.minecraft.entity.passive.FoxEntity.AvoidDaylightGoal
- Enclosing class:
- FoxEntity
class FoxEntity.AvoidDaylightGoal extends EscapeSunlightGoal
-
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 inttimerFields inherited from class net.minecraft.entity.ai.goal.EscapeSunlightGoal
mob -
Constructor Summary
Constructors Constructor Description AvoidDaylightGoal(double speed) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.EscapeSunlightGoal
locateShadedPos, shouldContinue, targetShadedPosMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, stop, tick, toString
-
Field Details
-
timer
private int timer
-
-
Constructor Details
-
AvoidDaylightGoal
public AvoidDaylightGoal(double speed)
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStartin classEscapeSunlightGoal
-
start
public void start()- Overrides:
startin classEscapeSunlightGoal
-