Class HideInHomeTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.HideInHomeTask
- Direct Known Subclasses:
HideInHomeDuringRaidTask
public class HideInHomeTask extends Task<LivingEntity>
- Mappings:
Namespace Name official atq
intermediary net/minecraft/class_4246
named net/minecraft/entity/ai/brain/task/HideInHomeTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields Modifier and Type Field Description private Optional<BlockPos>
homePosition
private int
maxDistance
private int
preferredDistance
private float
walkSpeed
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description HideInHomeTask(int maxDistance, float walkSpeed, int preferredDistance)
-
Method Summary
Modifier and Type Method Description protected void
run(ServerWorld world, LivingEntity entity, long time)
protected boolean
shouldRun(ServerWorld world, LivingEntity entity)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
walkSpeed
private final float walkSpeed- Mappings:
Namespace Name Mixin selector official b
Latq;b:F
intermediary field_18993
Lnet/minecraft/class_4246;field_18993:F
named walkSpeed
Lnet/minecraft/entity/ai/brain/task/HideInHomeTask;walkSpeed:F
-
maxDistance
private final int maxDistance- Mappings:
Namespace Name Mixin selector official c
Latq;c:I
intermediary field_18994
Lnet/minecraft/class_4246;field_18994:I
named maxDistance
Lnet/minecraft/entity/ai/brain/task/HideInHomeTask;maxDistance:I
-
preferredDistance
private final int preferredDistance- Mappings:
Namespace Name Mixin selector official d
Latq;d:I
intermediary field_18995
Lnet/minecraft/class_4246;field_18995:I
named preferredDistance
Lnet/minecraft/entity/ai/brain/task/HideInHomeTask;preferredDistance:I
-
homePosition
- Mappings:
Namespace Name Mixin selector official e
Latq;e:Ljava/util/Optional;
intermediary field_18998
Lnet/minecraft/class_4246;field_18998:Ljava/util/Optional;
named homePosition
Lnet/minecraft/entity/ai/brain/task/HideInHomeTask;homePosition:Ljava/util/Optional;
-
-
Constructor Details
-
HideInHomeTask
public HideInHomeTask(int maxDistance, float walkSpeed, int preferredDistance)- Mappings:
Namespace Name Mixin selector official <init>
Latq;<init>(IFI)V
intermediary <init>
Lnet/minecraft/class_4246;<init>(IFI)V
named <init>
Lnet/minecraft/entity/ai/brain/task/HideInHomeTask;<init>(IFI)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lass;a(Laav;Lari;)Z
intermediary method_18919
Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
-
run
- Overrides:
run
in classTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lass;a(Laav;Lari;J)V
intermediary method_18920
Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named run
Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-