Class HideInHomeTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.HideInHomeTask
- Direct Known Subclasses:
HideInHomeDuringRaidTask
- Mappings:
Namespace Name official awe
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
Modifier and TypeFieldDescriptionprivate int
private int
private float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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 a
Lawe;a: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
Lawe;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
Lawe;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
Lawe;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>
Lawe;<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
Lavg;a(Labr;Latt;)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
Lavg;a(Labr;Latt;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
-