Package net.minecraft.entity.passive
Class TurtleEntity.GoHomeGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.passive.TurtleEntity.GoHomeGoal
-
- Enclosing class:
- TurtleEntity
static class TurtleEntity.GoHomeGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private intcloseToHomeTryTicksprivate doublespeedModifierprivate booleanstuckprivate TurtleEntityturtle
-
Constructor Summary
Constructors Constructor Description GoHomeGoal(TurtleEntity p_i48821_1_, double p_i48821_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanContinueToUse()booleancanUse()voidstart()voidstop()voidtick()-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
-
-
-
Field Detail
-
turtle
private final TurtleEntity turtle
-
speedModifier
private final double speedModifier
-
stuck
private boolean stuck
-
closeToHomeTryTicks
private int closeToHomeTryTicks
-
-
Constructor Detail
-
GoHomeGoal
GoHomeGoal(TurtleEntity p_i48821_1_, double p_i48821_2_)
-
-
Method Detail
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUsein classGoal
-
-