类 GoTowardsLookTarget


  • public class GoTowardsLookTarget
    extends Task<LivingEntity>
    Mappings:
    Namespace Name
    official awm
    intermediary net/minecraft/class_4120
    named net/minecraft/entity/ai/brain/task/GoTowardsLookTarget
    • 字段详细资料

      • speed

        private final Function<LivingEntity,​Float> speed
        Mappings:
        Namespace Name Mixin selector
        official a Lawm;a:Ljava/util/function/Function;
        intermediary field_18378 Lnet/minecraft/class_4120;field_18378:Ljava/util/function/Function;
        named speed Lnet/minecraft/entity/ai/brain/task/GoTowardsLookTarget;speed:Ljava/util/function/Function;
      • completionRange

        private final int completionRange
        Mappings:
        Namespace Name Mixin selector
        official c Lawm;c:I
        intermediary field_19002 Lnet/minecraft/class_4120;field_19002:I
        named completionRange Lnet/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)V
        intermediary <init> Lnet/minecraft/class_4120;<init>(FI)V
        named <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)V
        intermediary <init> Lnet/minecraft/class_4120;<init>(Ljava/util/function/Function;I)V
        named <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 a Lauj;a(Labj;Lasy;J)V
        intermediary method_18920 Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
        named run Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V