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 int
closeToHomeTryTicks
private double
speedModifier
private boolean
stuck
private TurtleEntity
turtle
-
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 boolean
canContinueToUse()
boolean
canUse()
void
start()
void
stop()
void
tick()
-
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:
canContinueToUse
in classGoal
-
-