类 FollowTemptation
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<PathfinderMob>
net.minecraft.world.entity.ai.behavior.FollowTemptation
- 所有已实现的接口:
BehaviorControl<PathfinderMob>
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
字段概要
字段修饰符和类型字段说明static final double
private final Function<LivingEntity,
Double> private final Function<LivingEntity,
Float> static final int
从类继承的字段 net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
构造器概要
构造器构造器说明FollowTemptation
(Function<LivingEntity, Float> pSpeedModifier) FollowTemptation
(Function<LivingEntity, Float> pSpeedModifier, Function<LivingEntity, Double> pCloseEnoughDistance) -
方法概要
修饰符和类型方法说明protected boolean
canStillUse
(ServerLevel pLevel, PathfinderMob pEntity, long pGameTime) protected float
getSpeedModifier
(PathfinderMob pPathfinder) getTemptingPlayer
(PathfinderMob pPathfinder) protected void
start
(ServerLevel pLevel, PathfinderMob pEntity, long pGameTime) protected void
stop
(ServerLevel pLevel, PathfinderMob pEntity, long pGameTime) protected void
tick
(ServerLevel pLevel, PathfinderMob pOwner, long pGameTime) protected boolean
timedOut
(long pGameTime) 从类继承的方法 net.minecraft.world.entity.ai.behavior.Behavior
checkExtraStartConditions, debugString, doStop, getStatus, hasRequiredMemories, tickOrStop, tryStart
-
字段详细资料
-
构造器详细资料
-
FollowTemptation
-
FollowTemptation
public FollowTemptation(Function<LivingEntity, Float> pSpeedModifier, Function<LivingEntity, Double> pCloseEnoughDistance)
-
-
方法详细资料
-
getSpeedModifier
-
getTemptingPlayer
-
timedOut
protected boolean timedOut(long pGameTime) - 覆盖:
timedOut
在类中Behavior<PathfinderMob>
-
canStillUse
- 覆盖:
canStillUse
在类中Behavior<PathfinderMob>
-
start
- 覆盖:
start
在类中Behavior<PathfinderMob>
-
stop
- 覆盖:
stop
在类中Behavior<PathfinderMob>
-
tick
- 覆盖:
tick
在类中Behavior<PathfinderMob>
-