类 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 awlintermediary net/minecraft/class_4122named net/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.entity.ai.brain.task.Task
Task.Status
-
-
字段概要
字段 修饰符和类型 字段 说明 private intcompletionRangeprivate MemoryModuleType<GlobalPos>destinationprivate intmaxRangeprivate intmaxRunTimeprivate floatspeed-
从类继承的字段 net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
-
构造器概要
构造器 构造器 说明 VillagerWalkTowardsTask(MemoryModuleType<GlobalPos> destination, float speed, int completionRange, int maxRange, int maxRunTime)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 private booleandimensionMismatches(ServerWorld world, GlobalPos pos)private booleanexceedsMaxRange(VillagerEntity villager, GlobalPos pos)private voidgiveUp(VillagerEntity villager, long time)private booleanreachedDestination(ServerWorld world, VillagerEntity villager, GlobalPos pos)protected voidrun(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)private booleanshouldGiveUp(ServerWorld world, VillagerEntity villager)-
从类继承的方法 net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
-
-
-
-
字段详细资料
-
destination
private final MemoryModuleType<GlobalPos> destination
- Mappings:
Namespace Name Mixin selector official aLawl;a:Lbav;intermediary field_18382Lnet/minecraft/class_4122;field_18382:Lnet/minecraft/class_4140;named destinationLnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;destination:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
-
speed
private final float speed
- Mappings:
Namespace Name Mixin selector official cLawl;c:Fintermediary field_18383Lnet/minecraft/class_4122;field_18383:Fnamed speedLnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;speed:F
-
completionRange
private final int completionRange
- Mappings:
Namespace Name Mixin selector official dLawl;d:Iintermediary field_18384Lnet/minecraft/class_4122;field_18384:Inamed completionRangeLnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;completionRange:I
-
maxRange
private final int maxRange
- Mappings:
Namespace Name Mixin selector official eLawl;e:Iintermediary field_18385Lnet/minecraft/class_4122;field_18385:Inamed maxRangeLnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;maxRange:I
-
maxRunTime
private final int maxRunTime
- Mappings:
Namespace Name Mixin selector official fLawl;f:Iintermediary field_19292Lnet/minecraft/class_4122;field_19292:Inamed maxRunTimeLnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;maxRunTime:I
-
-
构造器详细资料
-
VillagerWalkTowardsTask
public VillagerWalkTowardsTask(MemoryModuleType<GlobalPos> destination, float speed, int completionRange, int maxRange, int maxRunTime)
- Mappings:
Namespace Name Mixin selector official <init>Lawl;<init>(Lbav;FIII)Vintermediary <init>Lnet/minecraft/class_4122;<init>(Lnet/minecraft/class_4140;FIII)Vnamed <init>Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;<init>(Lnet/minecraft/entity/ai/brain/MemoryModuleType;FIII)V
-
-
方法详细资料
-
giveUp
private void giveUp(VillagerEntity villager, long time)
- Mappings:
Namespace Name Mixin selector official aLawl;a(Lbis;J)Vintermediary method_21722Lnet/minecraft/class_4122;method_21722(Lnet/minecraft/class_1646;J)Vnamed giveUpLnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;giveUp(Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
run
protected void run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
- 覆盖:
run在类中Task<VillagerEntity>- Mappings:
Namespace Name Mixin selector official aLawl;a(Labj;Lbis;J)Vintermediary method_19509Lnet/minecraft/class_4122;method_19509(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vnamed runLnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
shouldGiveUp
private boolean shouldGiveUp(ServerWorld world, VillagerEntity villager)
- Mappings:
Namespace Name Mixin selector official aLawl;a(Labj;Lbis;)Zintermediary method_20498Lnet/minecraft/class_4122;method_20498(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Znamed shouldGiveUpLnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;shouldGiveUp(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
-
exceedsMaxRange
private boolean exceedsMaxRange(VillagerEntity villager, GlobalPos pos)
- Mappings:
Namespace Name Mixin selector official aLawl;a(Lbis;Lgj;)Zintermediary method_19597Lnet/minecraft/class_4122;method_19597(Lnet/minecraft/class_1646;Lnet/minecraft/class_4208;)Znamed exceedsMaxRangeLnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;exceedsMaxRange(Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/util/dynamic/GlobalPos;)Z
-
dimensionMismatches
private boolean dimensionMismatches(ServerWorld world, GlobalPos pos)
- Mappings:
Namespace Name Mixin selector official aLawl;a(Labj;Lgj;)Zintermediary method_30952Lnet/minecraft/class_4122;method_30952(Lnet/minecraft/class_3218;Lnet/minecraft/class_4208;)Znamed dimensionMismatchesLnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;dimensionMismatches(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/dynamic/GlobalPos;)Z
-
reachedDestination
private boolean reachedDestination(ServerWorld world, VillagerEntity villager, GlobalPos pos)
- Mappings:
Namespace Name Mixin selector official aLawl;a(Labj;Lbis;Lgj;)Zintermediary method_19988Lnet/minecraft/class_4122;method_19988(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;Lnet/minecraft/class_4208;)Znamed reachedDestinationLnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;reachedDestination(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/util/dynamic/GlobalPos;)Z
-
-