Package net.minecraft.entity.ai.goal
Class FollowOwnerGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.FollowOwnerGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final IWorldReader
private final PathNavigator
private float
private LivingEntity
private final double
private final float
private final float
private final TameableEntity
private int
-
Constructor Summary
ConstructorDescriptionFollowOwnerGoal
(TameableEntity p_i225711_1_, double p_i225711_2_, float p_i225711_4_, float p_i225711_5_, boolean p_i225711_6_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
private boolean
canTeleportTo
(BlockPos p_226329_1_) boolean
canUse()
private boolean
maybeTeleportTo
(int p_226328_1_, int p_226328_2_, int p_226328_3_) private int
randomIntInclusive
(int p_226327_1_, int p_226327_2_) void
start()
void
stop()
private void
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
Field Details
-
tamable
-
owner
-
level
-
speedModifier
private final double speedModifier -
timeToRecalcPath
private int timeToRecalcPath -
stopDistance
private final float stopDistance -
startDistance
private final float startDistance -
oldWaterCost
private float oldWaterCost -
canFly
private final boolean canFly
-
-
Constructor Details
-
FollowOwnerGoal
public FollowOwnerGoal(TameableEntity p_i225711_1_, double p_i225711_2_, float p_i225711_4_, float p_i225711_5_, boolean p_i225711_6_)
-
-
Method Details
-
canUse
public boolean canUse() -
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classGoal
-
start
public void start() -
stop
public void stop() -
tick
public void tick() -
teleportToOwner
private void teleportToOwner() -
maybeTeleportTo
private boolean maybeTeleportTo(int p_226328_1_, int p_226328_2_, int p_226328_3_) -
canTeleportTo
-
randomIntInclusive
private int randomIntInclusive(int p_226327_1_, int p_226327_2_)
-