Class PanicTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.PanicTask
- Mappings:
Namespace Name official bgaintermediary net/minecraft/class_4113named net/minecraft/entity/ai/brain/task/PanicTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status -
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisHostileNearby(LivingEntity entity) protected voidkeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected voidrun(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected booleanshouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) static booleanwasHurt(LivingEntity entity) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, shouldRun, stop, tick, toString, tryStarting
-
Constructor Details
-
PanicTask
public PanicTask()
-
-
Method Details
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) - Overrides:
shouldKeepRunningin classTask<VillagerEntity>- Mappings:
Namespace Name Mixin selector official aLbga;a(Lafo;Lbss;J)Zintermediary method_20646Lnet/minecraft/class_4113;method_20646(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Znamed shouldKeepRunningLnet/minecraft/entity/ai/brain/task/PanicTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
-
run
- Overrides:
runin classTask<VillagerEntity>- Mappings:
Namespace Name Mixin selector official bLbga;b(Lafo;Lbss;J)Vintermediary method_20647Lnet/minecraft/class_4113;method_20647(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vnamed runLnet/minecraft/entity/ai/brain/task/PanicTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
keepRunning
- Overrides:
keepRunningin classTask<VillagerEntity>- Mappings:
Namespace Name Mixin selector official cLbga;c(Lafo;Lbss;J)Vintermediary method_20648Lnet/minecraft/class_4113;method_20648(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vnamed keepRunningLnet/minecraft/entity/ai/brain/task/PanicTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
isHostileNearby
- Mappings:
Namespace Name Mixin selector official aLbga;a(Lbbf;)Zintermediary method_19574Lnet/minecraft/class_4113;method_19574(Lnet/minecraft/class_1309;)Znamed isHostileNearbyLnet/minecraft/entity/ai/brain/task/PanicTask;isHostileNearby(Lnet/minecraft/entity/LivingEntity;)Z
-
wasHurt
- Mappings:
Namespace Name Mixin selector official bLbga;b(Lbbf;)Zintermediary method_19575Lnet/minecraft/class_4113;method_19575(Lnet/minecraft/class_1309;)Znamed wasHurtLnet/minecraft/entity/ai/brain/task/PanicTask;wasHurt(Lnet/minecraft/entity/LivingEntity;)Z
-