Class WalkTowardsLandTask

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.WalkTowardsLandTask

public class WalkTowardsLandTask extends Task<PathAwareEntity>
Mappings:
Namespace Name
official bfo
intermediary net/minecraft/class_7097
named net/minecraft/entity/ai/brain/task/WalkTowardsLandTask
  • Field Details

    • TASK_COOLDOWN

      private static final int TASK_COOLDOWN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbfo;a:I
      intermediary field_37433 Lnet/minecraft/class_7097;field_37433:I
      named TASK_COOLDOWN Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;TASK_COOLDOWN:I
    • range

      private final int range
      Mappings:
      Namespace Name Mixin selector
      official d Lbfo;d:I
      intermediary field_37434 Lnet/minecraft/class_7097;field_37434:I
      named range Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;range:I
    • speed

      private final float speed
      Mappings:
      Namespace Name Mixin selector
      official e Lbfo;e:F
      intermediary field_37435 Lnet/minecraft/class_7097;field_37435:F
      named speed Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;speed:F
    • walkTowardsLandTime

      private long walkTowardsLandTime
      Mappings:
      Namespace Name Mixin selector
      official f Lbfo;f:J
      intermediary field_37436 Lnet/minecraft/class_7097;field_37436:J
      named walkTowardsLandTime Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;walkTowardsLandTime:J
  • Constructor Details

    • WalkTowardsLandTask

      public WalkTowardsLandTask(int range, float speed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfo;<init>(IF)V
      intermediary <init> Lnet/minecraft/class_7097;<init>(IF)V
      named <init> Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;<init>(IF)V
  • Method Details

    • finishRunning

      protected void finishRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      finishRunning in class Task<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbfo;a(Lafo;Lbbo;J)V
      intermediary method_41344 Lnet/minecraft/class_7097;method_41344(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named finishRunning Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
    • shouldRun

      protected boolean shouldRun(ServerWorld serverWorld, PathAwareEntity pathAwareEntity)
      Overrides:
      shouldRun in class Task<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbfo;a(Lafo;Lbbo;)Z
      intermediary method_41343 Lnet/minecraft/class_7097;method_41343(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)Z
    • run

      protected void run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      run in class Task<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official b Lbfo;b(Lafo;Lbbo;J)V
      intermediary method_41345 Lnet/minecraft/class_7097;method_41345(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named run Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V