类 GoTowardsLookTarget
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<LivingEntity>
-
- net.minecraft.entity.ai.brain.task.GoTowardsLookTarget
-
public class GoTowardsLookTarget extends Task<LivingEntity>
- Mappings:
Namespace Name official awmintermediary net/minecraft/class_4120named net/minecraft/entity/ai/brain/task/GoTowardsLookTarget
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.entity.ai.brain.task.Task
Task.Status
-
-
字段概要
字段 修饰符和类型 字段 说明 private intcompletionRangeprivate Function<LivingEntity,Float>speed-
从类继承的字段 net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
-
构造器概要
构造器 构造器 说明 GoTowardsLookTarget(float speed, int completionRange)GoTowardsLookTarget(Function<LivingEntity,Float> speed, int completionRange)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidrun(ServerWorld world, LivingEntity entity, long time)-
从类继承的方法 net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
-
-
-
-
字段详细资料
-
speed
private final Function<LivingEntity,Float> speed
- Mappings:
Namespace Name Mixin selector official aLawm;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 cLawm;c:Iintermediary field_19002Lnet/minecraft/class_4120;field_19002:Inamed completionRangeLnet/minecraft/entity/ai/brain/task/GoTowardsLookTarget;completionRange:I
-
-
构造器详细资料
-
GoTowardsLookTarget
public GoTowardsLookTarget(float speed, int completionRange)- Mappings:
Namespace Name Mixin selector official <init>Lawm;<init>(FI)Vintermediary <init>Lnet/minecraft/class_4120;<init>(FI)Vnamed <init>Lnet/minecraft/entity/ai/brain/task/GoTowardsLookTarget;<init>(FI)V
-
GoTowardsLookTarget
public GoTowardsLookTarget(Function<LivingEntity,Float> speed, int completionRange)
- Mappings:
Namespace Name Mixin selector official <init>Lawm;<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
-
-
方法详细资料
-
run
protected void run(ServerWorld world, LivingEntity entity, long time)
- 覆盖:
run在类中Task<LivingEntity>- Mappings:
Namespace Name Mixin selector official aLauj;a(Labj;Lasy;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
-
-