Class WalkTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.WalkTask
- Direct Known Subclasses:
CamelBrain.CamelWalkTask
- Mappings:
Namespace Name official beuintermediary net/minecraft/class_6028named net/minecraft/entity/ai/brain/task/WalkTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate final floatprivate static final intFields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindClosestWater(BlockView world, Entity entity) findTarget(PathAwareEntity entity, ServerWorld world) protected booleanmethod_35063(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected voidmethod_35064(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected voidmethod_35065(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected voidmethod_44203(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, run, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
-
Field Details
-
MIN_RUN_TIME
private static final int MIN_RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official aLbeu;a:Iintermediary field_30107Lnet/minecraft/class_6028;field_30107:Inamed MIN_RUN_TIMELnet/minecraft/entity/ai/brain/task/WalkTask;MIN_RUN_TIME:I
-
MAX_RUN_TIME
private static final int MAX_RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official dLbeu;d:Iintermediary field_30108Lnet/minecraft/class_6028;field_30108:Inamed MAX_RUN_TIMELnet/minecraft/entity/ai/brain/task/WalkTask;MAX_RUN_TIME:I
-
HORIZONTAL_RANGE
private static final int HORIZONTAL_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official eLbeu;e:Iintermediary field_30109Lnet/minecraft/class_6028;field_30109:Inamed HORIZONTAL_RANGELnet/minecraft/entity/ai/brain/task/WalkTask;HORIZONTAL_RANGE:I
-
VERTICAL_RANGE
private static final int VERTICAL_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official fLbeu;f:Iintermediary field_30110Lnet/minecraft/class_6028;field_30110:Inamed VERTICAL_RANGELnet/minecraft/entity/ai/brain/task/WalkTask;VERTICAL_RANGE:I
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector official gLbeu;g:Fintermediary field_30111Lnet/minecraft/class_6028;field_30111:Fnamed speedLnet/minecraft/entity/ai/brain/task/WalkTask;speed:F
-
-
Constructor Details
-
WalkTask
public WalkTask(float speed) - Mappings:
Namespace Name Mixin selector official <init>Lbeu;<init>(F)Vintermediary <init>Lnet/minecraft/class_6028;<init>(F)Vnamed <init>Lnet/minecraft/entity/ai/brain/task/WalkTask;<init>(F)V
-
-
Method Details
-
method_35063
protected boolean method_35063(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) - Mappings:
Namespace Name Mixin selector official aLbeu;a(Lahb;Lbdw;J)Zintermediary method_35063Lnet/minecraft/class_6028;method_35063(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)Znamed method_35063Lnet/minecraft/entity/ai/brain/task/WalkTask;method_35063(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)Z
-
method_35064
- Mappings:
Namespace Name Mixin selector official bLbeu;b(Lahb;Lbdw;J)Vintermediary method_35064Lnet/minecraft/class_6028;method_35064(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)Vnamed method_35064Lnet/minecraft/entity/ai/brain/task/WalkTask;method_35064(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-
method_44203
- Mappings:
Namespace Name Mixin selector official cLbeu;c(Lahb;Lbdw;J)Vintermediary method_44203Lnet/minecraft/class_6028;method_44203(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)Vnamed method_44203Lnet/minecraft/entity/ai/brain/task/WalkTask;method_44203(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-
method_35065
- Mappings:
Namespace Name Mixin selector official dLbeu;d(Lahb;Lbdw;J)Vintermediary method_35065Lnet/minecraft/class_6028;method_35065(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)Vnamed method_35065Lnet/minecraft/entity/ai/brain/task/WalkTask;method_35065(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-
findTarget
- Mappings:
Namespace Name Mixin selector official aLbeu;a(Lbdw;Lahb;)Ldze;intermediary method_39761Lnet/minecraft/class_6028;method_39761(Lnet/minecraft/class_1314;Lnet/minecraft/class_3218;)Lnet/minecraft/class_243;named findTargetLnet/minecraft/entity/ai/brain/task/WalkTask;findTarget(Lnet/minecraft/entity/mob/PathAwareEntity;Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/util/math/Vec3d;
-
findClosestWater
- Mappings:
Namespace Name Mixin selector official aLbeu;a(Lcif;Lbcy;)Ljava/util/Optional;intermediary method_39762Lnet/minecraft/class_6028;method_39762(Lnet/minecraft/class_1922;Lnet/minecraft/class_1297;)Ljava/util/Optional;named findClosestWaterLnet/minecraft/entity/ai/brain/task/WalkTask;findClosestWater(Lnet/minecraft/world/BlockView;Lnet/minecraft/entity/Entity;)Ljava/util/Optional;
-