Class StrollTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.StrollTask
- Direct Known Subclasses:
AquaticStrollTask
,NoPenaltyStrollTask
- Mappings:
Namespace Name official bff
intermediary net/minecraft/class_4818
named net/minecraft/entity/ai/brain/task/StrollTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final int
private static final int
private static final int
private final float
private final boolean
protected final int
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorsConstructorDescriptionStrollTask
(float speed) StrollTask
(float speed, boolean strollInsideWater) StrollTask
(float speed, int horizontalRadius, int verticalRadius) StrollTask
(float speed, int horizontalRadius, int verticalRadius, boolean strollInsideWater) -
Method Summary
Modifier and TypeMethodDescriptionfindWalkTarget
(PathAwareEntity entity) protected void
run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected boolean
shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
MIN_RUN_TIME
private static final int MIN_RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lbff;e:I
intermediary field_30157
Lnet/minecraft/class_4818;field_30157:I
named MIN_RUN_TIME
Lnet/minecraft/entity/ai/brain/task/StrollTask;MIN_RUN_TIME:I
-
MAX_RUN_TIME
private static final int MAX_RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lbff;f:I
intermediary field_30158
Lnet/minecraft/class_4818;field_30158:I
named MAX_RUN_TIME
Lnet/minecraft/entity/ai/brain/task/StrollTask;MAX_RUN_TIME:I
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector official g
Lbff;g:F
intermediary field_22310
Lnet/minecraft/class_4818;field_22310:F
named speed
Lnet/minecraft/entity/ai/brain/task/StrollTask;speed:F
-
horizontalRadius
protected final int horizontalRadius- Mappings:
Namespace Name Mixin selector official a
Lbff;a:I
intermediary field_22311
Lnet/minecraft/class_4818;field_22311:I
named horizontalRadius
Lnet/minecraft/entity/ai/brain/task/StrollTask;horizontalRadius:I
-
verticalRadius
protected final int verticalRadius- Mappings:
Namespace Name Mixin selector official d
Lbff;d:I
intermediary field_22312
Lnet/minecraft/class_4818;field_22312:I
named verticalRadius
Lnet/minecraft/entity/ai/brain/task/StrollTask;verticalRadius:I
-
strollInsideWater
private final boolean strollInsideWater- Mappings:
Namespace Name Mixin selector official h
Lbff;h:Z
intermediary field_34047
Lnet/minecraft/class_4818;field_34047:Z
named strollInsideWater
Lnet/minecraft/entity/ai/brain/task/StrollTask;strollInsideWater:Z
-
-
Constructor Details
-
StrollTask
public StrollTask(float speed) - Mappings:
Namespace Name Mixin selector official <init>
Lbff;<init>(F)V
intermediary <init>
Lnet/minecraft/class_4818;<init>(F)V
named <init>
Lnet/minecraft/entity/ai/brain/task/StrollTask;<init>(F)V
-
StrollTask
public StrollTask(float speed, boolean strollInsideWater) - Mappings:
Namespace Name Mixin selector official <init>
Lbff;<init>(FZ)V
intermediary <init>
Lnet/minecraft/class_4818;<init>(FZ)V
named <init>
Lnet/minecraft/entity/ai/brain/task/StrollTask;<init>(FZ)V
-
StrollTask
public StrollTask(float speed, int horizontalRadius, int verticalRadius) - Mappings:
Namespace Name Mixin selector official <init>
Lbff;<init>(FII)V
intermediary <init>
Lnet/minecraft/class_4818;<init>(FII)V
named <init>
Lnet/minecraft/entity/ai/brain/task/StrollTask;<init>(FII)V
-
StrollTask
public StrollTask(float speed, int horizontalRadius, int verticalRadius, boolean strollInsideWater) - Mappings:
Namespace Name Mixin selector official <init>
Lbff;<init>(FIIZ)V
intermediary <init>
Lnet/minecraft/class_4818;<init>(FIIZ)V
named <init>
Lnet/minecraft/entity/ai/brain/task/StrollTask;<init>(FIIZ)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbff;a(Lagg;Lbcl;)Z
intermediary method_33202
Lnet/minecraft/class_4818;method_33202(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/StrollTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)Z
-
run
- Overrides:
run
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbff;a(Lagg;Lbcl;J)V
intermediary method_24594
Lnet/minecraft/class_4818;method_24594(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
named run
Lnet/minecraft/entity/ai/brain/task/StrollTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-
findWalkTarget
- Mappings:
Namespace Name Mixin selector official a
Lbff;a(Lbcl;)Ldwq;
intermediary method_33201
Lnet/minecraft/class_4818;method_33201(Lnet/minecraft/class_1314;)Lnet/minecraft/class_243;
named findWalkTarget
Lnet/minecraft/entity/ai/brain/task/StrollTask;findWalkTarget(Lnet/minecraft/entity/mob/PathAwareEntity;)Lnet/minecraft/util/math/Vec3d;
-