Class VillagerWalkTowardsTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.VillagerWalkTowardsTask
public class VillagerWalkTowardsTask extends Task<VillagerEntity>
- Mappings:
Namespace Name official aur
intermediary net/minecraft/class_4122
named net/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask
-
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 int
completionRange
private MemoryModuleType<GlobalPos>
destination
private int
maxRange
private int
maxRunTime
private float
speed
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description VillagerWalkTowardsTask(MemoryModuleType<GlobalPos> destination, float speed, int completionRange, int maxRange, int maxRunTime)
-
Method Summary
Modifier and Type Method Description private boolean
dimensionMismatches(ServerWorld world, GlobalPos pos)
private boolean
exceedsMaxRange(VillagerEntity villager, GlobalPos pos)
private void
giveUp(VillagerEntity villager, long time)
private boolean
reachedDestination(ServerWorld world, VillagerEntity villager, GlobalPos pos)
protected void
run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
private boolean
shouldGiveUp(ServerWorld world, VillagerEntity villager)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
-
Field Details
-
destination
- Mappings:
Namespace Name Mixin selector official b
Laur;b:Lazf;
intermediary field_18382
Lnet/minecraft/class_4122;field_18382:Lnet/minecraft/class_4140;
named destination
Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;destination:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector official c
Laur;c:F
intermediary field_18383
Lnet/minecraft/class_4122;field_18383:F
named speed
Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;speed:F
-
completionRange
private final int completionRange- Mappings:
Namespace Name Mixin selector official d
Laur;d:I
intermediary field_18384
Lnet/minecraft/class_4122;field_18384:I
named completionRange
Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;completionRange:I
-
maxRange
private final int maxRange- Mappings:
Namespace Name Mixin selector official e
Laur;e:I
intermediary field_18385
Lnet/minecraft/class_4122;field_18385:I
named maxRange
Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;maxRange:I
-
maxRunTime
private final int maxRunTime- Mappings:
Namespace Name Mixin selector official f
Laur;f:I
intermediary field_19292
Lnet/minecraft/class_4122;field_19292:I
named maxRunTime
Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;maxRunTime:I
-
-
Constructor Details
-
VillagerWalkTowardsTask
public VillagerWalkTowardsTask(MemoryModuleType<GlobalPos> destination, float speed, int completionRange, int maxRange, int maxRunTime)- Mappings:
Namespace Name Mixin selector official <init>
Laur;<init>(Lazf;FIII)V
intermediary <init>
Lnet/minecraft/class_4122;<init>(Lnet/minecraft/class_4140;FIII)V
named <init>
Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;<init>(Lnet/minecraft/entity/ai/brain/MemoryModuleType;FIII)V
-
-
Method Details
-
giveUp
- Mappings:
Namespace Name Mixin selector official a
Laur;a(Lbgy;J)V
intermediary method_21722
Lnet/minecraft/class_4122;method_21722(Lnet/minecraft/class_1646;J)V
named giveUp
Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;giveUp(Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
run
- Overrides:
run
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official a
Laur;a(Laav;Lbgy;J)V
intermediary method_19509
Lnet/minecraft/class_4122;method_19509(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
named run
Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
shouldGiveUp
- Mappings:
Namespace Name Mixin selector official a
Laur;a(Laav;Lbgy;)Z
intermediary method_20498
Lnet/minecraft/class_4122;method_20498(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
named shouldGiveUp
Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;shouldGiveUp(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
-
exceedsMaxRange
- Mappings:
Namespace Name Mixin selector official a
Laur;a(Lbgy;Lgf;)Z
intermediary method_19597
Lnet/minecraft/class_4122;method_19597(Lnet/minecraft/class_1646;Lnet/minecraft/class_4208;)Z
named exceedsMaxRange
Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;exceedsMaxRange(Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/util/dynamic/GlobalPos;)Z
-
dimensionMismatches
- Mappings:
Namespace Name Mixin selector official a
Laur;a(Laav;Lgf;)Z
intermediary method_30952
Lnet/minecraft/class_4122;method_30952(Lnet/minecraft/class_3218;Lnet/minecraft/class_4208;)Z
named dimensionMismatches
Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;dimensionMismatches(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/dynamic/GlobalPos;)Z
-
reachedDestination
- Mappings:
Namespace Name Mixin selector official a
Laur;a(Laav;Lbgy;Lgf;)Z
intermediary method_19988
Lnet/minecraft/class_4122;method_19988(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;Lnet/minecraft/class_4208;)Z
named reachedDestination
Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;reachedDestination(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/util/dynamic/GlobalPos;)Z
-