net.minecraft.entity.ai.brain.task

public class SniffTask<E extends WardenEntity>

extends MultiTickTask<E>

All mapped superinterfaces:

Task

net.minecraft.world.entity.ai.behavior.warden.Sniffing
net.minecraft.class_7251
net.minecraft.entity.ai.brain.task.SniffTask

Field summary

Modifier and TypeField
private static final double
ANGER_FROM_SNIFFING_MAX_DISTANCE_XZ
field_38708
HORIZONTAL_RADIUS
private static final double
ANGER_FROM_SNIFFING_MAX_DISTANCE_Y
field_38848
VERTICAL_RADIUS

Constructor summary

ModifierConstructor
public (int runTime)

Method summary

Modifier and TypeMethod
protected boolean
canStillUse(ServerLevel level, E body, long timestamp)
method_42158(class_3218 arg0, E arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, E arg1, long arg2)
protected void
start(ServerLevel level, E body, long timestamp)
method_42160(class_3218 arg0, E arg1, long arg2)
run(ServerWorld arg0, E arg1, long arg2)
protected void
stop(ServerLevel level, E body, long timestamp)
method_42161(class_3218 arg0, E arg1, long arg2)
finishRunning(ServerWorld arg0, E 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
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 void
lambda$stop$0(Warden arg0, LivingEntity arg1)
method_42159(class_7260 arg0, class_1309 arg1)
method_42159(WardenEntity arg0, LivingEntity target)