net.minecraft.world.entity.ai.behavior

public class FollowTemptation

extends Behavior<PathfinderMob>

All mapped superinterfaces:

BehaviorControl

bym
net.minecraft.world.entity.ai.behavior.FollowTemptation
net.minecraft.class_5754
net.minecraft.entity.ai.brain.task.TemptTask
net.minecraft.world.entity.ai.behavior.FollowTemptation

Field summary

Modifier and TypeField
public static final int
c
TEMPTATION_COOLDOWN
field_30115
TEMPTATION_COOLDOWN_TICKS
public static final double
d
DEFAULT_CLOSE_ENOUGH_DIST
field_45125
DEFAULT_STOP_DISTANCE
public static final double
e
BACKED_UP_CLOSE_ENOUGH_DIST
field_45126
LARGE_ENTITY_STOP_DISTANCE
private final Function<LivingEntity, Float>
f
speedModifier
field_28316
speed
private final Function<LivingEntity, Double>
g
closeEnoughDistance
field_44704
stopDistanceGetter

Constructor summary

ModifierConstructor
public (Function<LivingEntity, Float> speed)
public (Function<LivingEntity, Float> speed, Function<LivingEntity, Double> stopDistanceGetter)

Method summary

Modifier and TypeMethod
protected float
a(bwo arg0)
getSpeedModifier(PathfinderMob arg0)
method_33196(class_1314 arg0)
getSpeed(PathAwareEntity entity)
private Optional<Player>
b(bwo arg0)
getTemptingPlayer(PathfinderMob arg0)
method_33198(class_1314 arg0)
getTemptingPlayer(PathAwareEntity entity)
protected boolean
a(long arg0)
timedOut(long arg0)
method_18915(long arg0)
isTimeLimitExceeded(long arg0)
protected boolean
a(ash arg0, bwo arg1, long arg2)
canStillUse(ServerLevel arg0, PathfinderMob arg1, long arg2)
method_33195(class_3218 arg0, class_1314 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, PathAwareEntity arg1, long arg2)
protected void
b(ash arg0, bwo arg1, long arg2)
start(ServerLevel arg0, PathfinderMob arg1, long arg2)
method_33197(class_3218 arg0, class_1314 arg1, long arg2)
run(ServerWorld arg0, PathAwareEntity arg1, long arg2)
protected void
c(ash arg0, bwo arg1, long arg2)
stop(ServerLevel arg0, PathfinderMob arg1, long arg2)
method_33199(class_3218 arg0, class_1314 arg1, long arg2)
finishRunning(ServerWorld arg0, PathAwareEntity arg1, long arg2)
protected void
d(ash arg0, bwo arg1, long arg2)
tick(ServerLevel arg0, PathfinderMob arg1, long arg2)
method_33200(class_3218 arg0, class_1314 arg1, long arg2)
keepRunning(ServerWorld arg0, PathAwareEntity arg1, long arg2)