Class FollowOwnerGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.FollowOwnerGoal
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PathNavigationprivate floatprivate @Nullable LivingEntityprivate final doubleprivate final floatprivate final floatprivate final TamableAnimalprivate int -
Constructor Summary
ConstructorsConstructorDescriptionFollowOwnerGoal(TamableAnimal tamable, double speedModifier, float startDistance, float stopDistance) -
Method Summary
Methods inherited from class Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
-
Field Details
-
tamable
-
owner
-
speedModifier
private final double speedModifier -
timeToRecalcPath
private int timeToRecalcPath -
stopDistance
private final float stopDistance -
startDistance
private final float startDistance -
oldWaterCost
private float oldWaterCost
-
-
Constructor Details
-
FollowOwnerGoal
public FollowOwnerGoal(TamableAnimal tamable, double speedModifier, float startDistance, float stopDistance)
-
-
Method Details
-
canUse
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUsein classGoal
-
start
-
stop
-
tick
-