net.minecraft.entity.ai.brain.task

public class TemptTask

extends MultiTickTask<PathAwareEntity>

All mapped superinterfaces:

Task

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

Field summary

Modifier and TypeField
public static final int
TEMPTATION_COOLDOWN
field_30115
TEMPTATION_COOLDOWN_TICKS
public static final double
DEFAULT_CLOSE_ENOUGH_DIST
field_45125
DEFAULT_STOP_DISTANCE
public static final double
BACKED_UP_CLOSE_ENOUGH_DIST
field_45126
LARGE_ENTITY_STOP_DISTANCE
private final Function<LivingEntity, Float>
speedModifier
field_28316
speed
private final Function<LivingEntity, Double>
closeEnoughDistance
field_44704
stopDistanceGetter
private final boolean
lookInTheEyes
field_59676
useEyeHeight

Constructor summary

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

Method summary

Modifier and TypeMethod
protected float
getSpeedModifier(PathfinderMob body)
method_33196(class_1314 arg0)
getSpeed(PathAwareEntity entity)
private Optional<PlayerEntity>
getTemptingPlayer(PathfinderMob body)
method_33198(class_1314 arg0)
getTemptingPlayer(PathAwareEntity entity)
protected boolean
timedOut(long timestamp)
method_18915(long arg0)
isTimeLimitExceeded(long arg0)
protected boolean
canStillUse(ServerLevel level, PathfinderMob body, long timestamp)
method_33195(class_3218 arg0, class_1314 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, PathAwareEntity arg1, long arg2)
protected void
start(ServerLevel level, PathfinderMob body, long timestamp)
method_33197(class_3218 arg0, class_1314 arg1, long arg2)
run(ServerWorld arg0, PathAwareEntity arg1, long arg2)
protected void
stop(ServerLevel level, PathfinderMob body, long timestamp)
method_33199(class_3218 arg0, class_1314 arg1, long arg2)
finishRunning(ServerWorld arg0, PathAwareEntity arg1, long arg2)
protected void
tick(ServerLevel level, PathfinderMob body, long timestamp)
method_33200(class_3218 arg0, class_1314 arg1, long arg2)
keepRunning(ServerWorld arg0, PathAwareEntity arg1, long arg2)
protected boolean
canStillUse(ServerLevel level, LivingEntity body, long timestamp)
method_18927(class_3218 arg0, class_1309 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, LivingEntity arg1, long arg2)
protected void
stop(ServerLevel level, LivingEntity body, long timestamp)
method_18926(class_3218 arg0, class_1309 arg1, long arg2)
finishRunning(ServerWorld arg0, LivingEntity arg1, long arg2)
protected void
tick(ServerLevel level, LivingEntity body, long timestamp)
method_18924(class_3218 arg0, class_1309 arg1, long arg2)
keepRunning(ServerWorld arg0, LivingEntity arg1, long arg2)
protected void
start(ServerLevel level, LivingEntity body, long timestamp)
method_18920(class_3218 arg0, class_1309 arg1, long arg2)
run(ServerWorld arg0, LivingEntity arg1, long arg2)
private static com.google.common.collect.ImmutableMap
lambda$new$1()
method_70682()
method_70682()
private static Double
lambda$new$0(LivingEntity arg0)
method_52173(class_1309 arg0)
method_52173(LivingEntity entity)