类 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> static final double
private final Function
<LivingEntity, Float> static final int
从类继承的字段 net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
构造器概要
构造器构造器说明FollowTemptation
(Function<LivingEntity, Float> p_147486_) FollowTemptation
(Function<LivingEntity, Float> p_288997_, Function<LivingEntity, Double> p_288972_) -
方法概要
修饰符和类型方法说明protected boolean
canStillUse
(ServerLevel p_147494_, PathfinderMob p_147495_, long p_147496_) protected float
getSpeedModifier
(PathfinderMob p_147498_) getTemptingPlayer
(PathfinderMob p_147509_) protected void
start
(ServerLevel p_147505_, PathfinderMob p_147506_, long p_147507_) protected void
stop
(ServerLevel p_147515_, PathfinderMob p_147516_, long p_147517_) protected void
tick
(ServerLevel p_147523_, PathfinderMob p_147524_, long p_147525_) protected boolean
timedOut
(long p_147488_) 从类继承的方法 net.minecraft.world.entity.ai.behavior.Behavior
checkExtraStartConditions, debugString, doStop, getStatus, hasRequiredMemories, tickOrStop, tryStart
-
字段详细资料
-
TEMPTATION_COOLDOWN
public static final int TEMPTATION_COOLDOWN- 另请参阅:
-
DEFAULT_CLOSE_ENOUGH_DIST
public static final double DEFAULT_CLOSE_ENOUGH_DIST- 另请参阅:
-
BACKED_UP_CLOSE_ENOUGH_DIST
public static final double BACKED_UP_CLOSE_ENOUGH_DIST- 另请参阅:
-
speedModifier
-
closeEnoughDistance
-
-
构造器详细资料
-
FollowTemptation
-
FollowTemptation
public FollowTemptation(Function<LivingEntity, Float> p_288997_, Function<LivingEntity, Double> p_288972_)
-
-
方法详细资料
-
getSpeedModifier
-
getTemptingPlayer
-
timedOut
protected boolean timedOut(long p_147488_) - 覆盖:
timedOut
在类中Behavior<PathfinderMob>
-
canStillUse
- 覆盖:
canStillUse
在类中Behavior<PathfinderMob>
-
start
- 覆盖:
start
在类中Behavior<PathfinderMob>
-
stop
- 覆盖:
stop
在类中Behavior<PathfinderMob>
-
tick
- 覆盖:
tick
在类中Behavior<PathfinderMob>
-