Class PanicTask
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<VillagerEntity>
net.minecraft.entity.ai.brain.task.PanicTask
- All Implemented Interfaces:
Task<VillagerEntity>
- Mappings:
Namespace Name official bkw
intermediary net/minecraft/class_4113
named net/minecraft/entity/ai/brain/task/PanicTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isHostileNearby
(LivingEntity entity) protected void
keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) static boolean
wasHurt
(LivingEntity entity) Methods inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
finishRunning, getName, getStatus, hasRequiredMemoryState, isTimeLimitExceeded, shouldRun, stop, tick, tryStarting
-
Constructor Details
-
PanicTask
public PanicTask()
-
-
Method Details
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) - Overrides:
shouldKeepRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbkw;a(Laip;Lbxz;J)Z
intermediary method_20646
Lnet/minecraft/class_4113;method_20646(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/PanicTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
-
run
- Overrides:
run
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official b
Lbkw;b(Laip;Lbxz;J)V
intermediary method_20647
Lnet/minecraft/class_4113;method_20647(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
named run
Lnet/minecraft/entity/ai/brain/task/PanicTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
keepRunning
- Overrides:
keepRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official c
Lbkw;c(Laip;Lbxz;J)V
intermediary method_20648
Lnet/minecraft/class_4113;method_20648(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
named keepRunning
Lnet/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 b
Lbkw;b(Lbfx;)Z
intermediary method_19574
Lnet/minecraft/class_4113;method_19574(Lnet/minecraft/class_1309;)Z
named isHostileNearby
Lnet/minecraft/entity/ai/brain/task/PanicTask;isHostileNearby(Lnet/minecraft/entity/LivingEntity;)Z
-
wasHurt
- Mappings:
Namespace Name Mixin selector official c
Lbkw;c(Lbfx;)Z
intermediary method_19575
Lnet/minecraft/class_4113;method_19575(Lnet/minecraft/class_1309;)Z
named wasHurt
Lnet/minecraft/entity/ai/brain/task/PanicTask;wasHurt(Lnet/minecraft/entity/LivingEntity;)Z
-