类 FollowOwnerGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.FollowOwnerGoal
-
嵌套类概要
-
字段概要
字段修饰符和类型字段说明private final boolean
private final LevelReader
private static final int
private static final int
private static final int
private final PathNavigation
private float
private LivingEntity
private final double
private final float
private final float
private final TamableAnimal
static final int
private int
-
构造器概要
构造器构造器说明FollowOwnerGoal
(TamableAnimal pTamable, double pSpeedModifier, float pStartDistance, float pStopDistance, boolean pCanFly) -
方法概要
修饰符和类型方法说明boolean
private boolean
canTeleportTo
(BlockPos pPos) boolean
canUse()
private boolean
maybeTeleportTo
(int pX, int pY, int pZ) private int
randomIntInclusive
(int pMin, int pMax) void
start()
void
stop()
private void
void
tick()
private boolean
从类继承的方法 net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
-
字段详细资料
-
TELEPORT_WHEN_DISTANCE_IS
public static final int TELEPORT_WHEN_DISTANCE_IS- 另请参阅:
-
MIN_HORIZONTAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTING
private static final int MIN_HORIZONTAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTING- 另请参阅:
-
MAX_HORIZONTAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTING
private static final int MAX_HORIZONTAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTING- 另请参阅:
-
MAX_VERTICAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTING
private static final int MAX_VERTICAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTING- 另请参阅:
-
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
-
-
构造器详细资料
-
FollowOwnerGoal
public FollowOwnerGoal(TamableAnimal pTamable, double pSpeedModifier, float pStartDistance, float pStopDistance, boolean pCanFly)
-
-
方法详细资料
-
canUse
public boolean canUse() -
canContinueToUse
public boolean canContinueToUse()- 覆盖:
canContinueToUse
在类中Goal
-
unableToMove
private boolean unableToMove() -
start
public void start() -
stop
public void stop() -
tick
public void tick() -
teleportToOwner
private void teleportToOwner() -
maybeTeleportTo
private boolean maybeTeleportTo(int pX, int pY, int pZ) -
canTeleportTo
-
randomIntInclusive
private int randomIntInclusive(int pMin, int pMax)
-