Package net.minecraft.entity.ai.goal
Class FleeSunGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.FleeSunGoal
-
- Direct Known Subclasses:
FoxEntity.FindShelterGoal
public class FleeSunGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private World
level
protected CreatureEntity
mob
private double
speedModifier
private double
wantedX
private double
wantedY
private double
wantedZ
-
Constructor Summary
Constructors Constructor Description FleeSunGoal(CreatureEntity p_i1623_1_, double p_i1623_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
protected Vector3d
getHidePos()
protected boolean
setWantedPos()
void
start()
-
-
-
Field Detail
-
mob
protected final CreatureEntity mob
-
wantedX
private double wantedX
-
wantedY
private double wantedY
-
wantedZ
private double wantedZ
-
speedModifier
private final double speedModifier
-
level
private final World level
-
-
Constructor Detail
-
FleeSunGoal
public FleeSunGoal(CreatureEntity p_i1623_1_, double p_i1623_2_)
-
-
Method Detail
-
setWantedPos
protected boolean setWantedPos()
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
getHidePos
@Nullable protected Vector3d getHidePos()
-
-