net.minecraft.entity.ai.brain.task

public class PanicTask

extends MultiTickTask<VillagerEntity>

All mapped superinterfaces:

Task

net.minecraft.world.entity.ai.behavior.VillagerPanicTrigger
net.minecraft.class_4113
net.minecraft.entity.ai.brain.task.PanicTask

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
protected boolean
canStillUse(ServerLevel level, Villager body, long timestamp)
method_20646(class_3218 arg0, class_1646 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
protected void
start(ServerLevel level, Villager body, long timestamp)
method_20647(class_3218 arg0, class_1646 arg1, long arg2)
run(ServerWorld arg0, VillagerEntity arg1, long arg2)
protected void
tick(ServerLevel level, Villager body, long timestamp)
method_20648(class_3218 arg0, class_1646 arg1, long arg2)
keepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
public static boolean
hasHostile(LivingEntity myBody)
method_19574(class_1309 arg0)
isHostileNearby(LivingEntity entity)
public static boolean
isHurt(LivingEntity myBody)
method_19575(class_1309 arg0)
wasHurt(LivingEntity entity)
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
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)