Class FollowTemptation
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<PathfinderMob>
net.minecraft.world.entity.ai.behavior.FollowTemptation
- All Implemented Interfaces:
 BehaviorControl<PathfinderMob>
- 
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleprivate final Function<LivingEntity,Float> static final intFields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanStillUse(ServerLevel p_147494_, PathfinderMob p_147495_, long p_147496_) protected floatgetSpeedModifier(PathfinderMob p_147498_) getTemptingPlayer(PathfinderMob p_147509_) protected voidstart(ServerLevel p_147505_, PathfinderMob p_147506_, long p_147507_) protected voidstop(ServerLevel p_147515_, PathfinderMob p_147516_, long p_147517_) protected voidtick(ServerLevel p_147523_, PathfinderMob p_147524_, long p_147525_) protected booleantimedOut(long p_147488_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
checkExtraStartConditions, debugString, doStop, getStatus, hasRequiredMemories, tickOrStop, tryStart 
- 
Field Details
- 
TEMPTATION_COOLDOWN
public static final int TEMPTATION_COOLDOWN- See Also:
 
 - 
CLOSE_ENOUGH_DIST
public static final double CLOSE_ENOUGH_DIST- See Also:
 
 - 
speedModifier
 
 - 
 - 
Constructor Details
- 
FollowTemptation
 
 - 
 - 
Method Details
- 
getSpeedModifier
 - 
getTemptingPlayer
 - 
timedOut
protected boolean timedOut(long p_147488_) - Overrides:
 timedOutin classBehavior<PathfinderMob>
 - 
canStillUse
- Overrides:
 canStillUsein classBehavior<PathfinderMob>
 - 
start
- Overrides:
 startin classBehavior<PathfinderMob>
 - 
stop
- Overrides:
 stopin classBehavior<PathfinderMob>
 - 
tick
- Overrides:
 tickin classBehavior<PathfinderMob>
 
 -