Class FollowOwnerGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.FollowOwnerGoal
- 
Nested Class Summary
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanprivate final LevelReaderprivate static final intprivate static final intprivate static final intprivate final PathNavigationprivate floatprivate LivingEntityprivate final doubleprivate final floatprivate final floatprivate final TamableAnimalstatic final intprivate int
- 
Constructor SummaryConstructorsConstructorDescriptionFollowOwnerGoal(TamableAnimal p_25294_, double p_25295_, float p_25296_, float p_25297_, boolean p_25298_) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanprivate booleancanTeleportTo(BlockPos p_25308_) booleancanUse()private booleanmaybeTeleportTo(int p_25304_, int p_25305_, int p_25306_) private intrandomIntInclusive(int p_25301_, int p_25302_) voidstart()voidstop()private voidvoidtick()private booleanMethods inherited from class net.minecraft.world.entity.ai.goal.GoaladjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
- 
Field Details- 
TELEPORT_WHEN_DISTANCE_ISpublic static final int TELEPORT_WHEN_DISTANCE_IS- See Also:
 
- 
MIN_HORIZONTAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTINGprivate static final int MIN_HORIZONTAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTING- See Also:
 
- 
MAX_HORIZONTAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTINGprivate static final int MAX_HORIZONTAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTING- See Also:
 
- 
MAX_VERTICAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTINGprivate static final int MAX_VERTICAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTING- See Also:
 
- 
tamable
- 
owner
- 
level
- 
speedModifierprivate final double speedModifier
- 
timeToRecalcPathprivate int timeToRecalcPath
- 
stopDistanceprivate final float stopDistance
- 
startDistanceprivate final float startDistance
- 
oldWaterCostprivate float oldWaterCost
- 
canFlyprivate final boolean canFly
 
- 
- 
Constructor Details- 
FollowOwnerGoalpublic FollowOwnerGoal(TamableAnimal p_25294_, double p_25295_, float p_25296_, float p_25297_, boolean p_25298_) 
 
- 
- 
Method Details- 
canUsepublic boolean canUse()
- 
canContinueToUsepublic boolean canContinueToUse()- Overrides:
- canContinueToUsein class- Goal
 
- 
unableToMoveprivate boolean unableToMove()
- 
startpublic void start()
- 
stoppublic void stop()
- 
tickpublic void tick()
- 
teleportToOwnerprivate void teleportToOwner()
- 
maybeTeleportToprivate boolean maybeTeleportTo(int p_25304_, int p_25305_, int p_25306_) 
- 
canTeleportTo
- 
randomIntInclusiveprivate int randomIntInclusive(int p_25301_, int p_25302_) 
 
-