Class VillagerWalkTowardsTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.VillagerWalkTowardsTask
- Mappings:
Namespace Name official bfv
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
FieldsModifier and TypeFieldDescriptionprivate final int
private final MemoryModuleType<GlobalPos>
private 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
ConstructorsConstructorDescriptionVillagerWalkTowardsTask
(MemoryModuleType<GlobalPos> destination, float speed, int completionRange, int maxRange, int maxRunTime) -
Method Summary
Modifier and TypeMethodDescriptionprivate 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 a
Lbfv;a:Lbku;
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 d
Lbfv;d: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 e
Lbfv;e: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 f
Lbfv;f: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 g
Lbfv;g: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>
Lbfv;<init>(Lbku;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
Lbfv;a(Lbtp;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
Lbfv;a(Lagg;Lbtp;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
Lbfv;a(Lagg;Lbtp;)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
Lbfv;a(Lbtp;Lhb;)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/math/GlobalPos;)Z
-
dimensionMismatches
- Mappings:
Namespace Name Mixin selector official a
Lbfv;a(Lagg;Lhb;)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/math/GlobalPos;)Z
-
reachedDestination
- Mappings:
Namespace Name Mixin selector official a
Lbfv;a(Lagg;Lbtp;Lhb;)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/math/GlobalPos;)Z
-