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 SummaryNested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.BehaviorBehavior.Status
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final doubleprivate final Function<LivingEntity,Double> static final doubleprivate final Function<LivingEntity,Float> static final intFields inherited from class net.minecraft.world.entity.ai.behavior.BehaviorDEFAULT_DURATION, entryCondition
- 
Constructor SummaryConstructorsConstructorDescriptionFollowTemptation(Function<LivingEntity, Float> p_147486_) FollowTemptation(Function<LivingEntity, Float> p_288997_, Function<LivingEntity, Double> p_288972_) 
- 
Method SummaryModifier 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.BehaviorcheckExtraStartConditions, debugString, doStop, getStatus, hasRequiredMemories, tickOrStop, tryStart
- 
Field Details- 
TEMPTATION_COOLDOWNpublic static final int TEMPTATION_COOLDOWN- See Also:
 
- 
DEFAULT_CLOSE_ENOUGH_DISTpublic static final double DEFAULT_CLOSE_ENOUGH_DIST- See Also:
 
- 
BACKED_UP_CLOSE_ENOUGH_DISTpublic static final double BACKED_UP_CLOSE_ENOUGH_DIST- See Also:
 
- 
speedModifier
- 
closeEnoughDistance
 
- 
- 
Constructor Details- 
FollowTemptation
- 
FollowTemptationpublic FollowTemptation(Function<LivingEntity, Float> p_288997_, Function<LivingEntity, Double> p_288972_) 
 
- 
- 
Method Details- 
getSpeedModifier
- 
getTemptingPlayer
- 
timedOutprotected boolean timedOut(long p_147488_) - Overrides:
- timedOutin class- Behavior<PathfinderMob>
 
- 
canStillUse- Overrides:
- canStillUsein class- Behavior<PathfinderMob>
 
- 
start- Overrides:
- startin class- Behavior<PathfinderMob>
 
- 
stop- Overrides:
- stopin class- Behavior<PathfinderMob>
 
- 
tick- Overrides:
- tickin class- Behavior<PathfinderMob>
 
 
-