Class GoTowardsLookTarget
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.GoTowardsLookTarget
- Mappings:
Namespace Name official axkintermediary net/minecraft/class_4120named net/minecraft/entity/ai/brain/task/GoTowardsLookTarget
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status -
Field Summary
FieldsFields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates -
Constructor Summary
ConstructorsConstructorDescriptionGoTowardsLookTarget(float speed, int completionRange)GoTowardsLookTarget(Function<LivingEntity,Float> speed, int completionRange) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidrun(ServerWorld world, LivingEntity entity, long time)Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
-
Field Details
-
speed
- Mappings:
Namespace Name Mixin selector official aLaxk;a:Ljava/util/function/Function;intermediary field_18378Lnet/minecraft/class_4120;field_18378:Ljava/util/function/Function;named speedLnet/minecraft/entity/ai/brain/task/GoTowardsLookTarget;speed:Ljava/util/function/Function;
-
completionRange
private final int completionRange- Mappings:
Namespace Name Mixin selector official cLaxk;c:Iintermediary field_19002Lnet/minecraft/class_4120;field_19002:Inamed completionRangeLnet/minecraft/entity/ai/brain/task/GoTowardsLookTarget;completionRange:I
-
-
Constructor Details
-
GoTowardsLookTarget
public GoTowardsLookTarget(float speed, int completionRange)- Mappings:
Namespace Name Mixin selector official <init>Laxk;<init>(FI)Vintermediary <init>Lnet/minecraft/class_4120;<init>(FI)Vnamed <init>Lnet/minecraft/entity/ai/brain/task/GoTowardsLookTarget;<init>(FI)V
-
GoTowardsLookTarget
- Mappings:
Namespace Name Mixin selector official <init>Laxk;<init>(Ljava/util/function/Function;I)Vintermediary <init>Lnet/minecraft/class_4120;<init>(Ljava/util/function/Function;I)Vnamed <init>Lnet/minecraft/entity/ai/brain/task/GoTowardsLookTarget;<init>(Ljava/util/function/Function;I)V
-
-
Method Details
-
run
- Overrides:
runin classTask<LivingEntity>- Mappings:
Namespace Name Mixin selector official aLavg;a(Labr;Latt;J)Vintermediary method_18920Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Vnamed runLnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-