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 bep
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
FieldsModifier and TypeFieldDescriptionprivate final int
private final int
private final float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
Constructors -
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
Lbep;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 d
Lbep;d: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 e
Lbep;e: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 f
Lbep;f: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>
Lbep;<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
Lbdo;a(Lagg;Lbcc;)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
Lbdo;a(Lagg;Lbcc;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
-