Class WalkTowardsWaterTask

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

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

    • range

      private final int range
      Mappings:
      Namespace Name Mixin selector
      official a Lbfp;a:I
      intermediary field_37437 Lnet/minecraft/class_7098;field_37437:I
      named range Lnet/minecraft/entity/ai/brain/task/WalkTowardsWaterTask;range:I
    • speed

      private final float speed
      Mappings:
      Namespace Name Mixin selector
      official d Lbfp;d:F
      intermediary field_37438 Lnet/minecraft/class_7098;field_37438:F
      named speed Lnet/minecraft/entity/ai/brain/task/WalkTowardsWaterTask;speed:F
    • walkTowardsWaterTime

      private long walkTowardsWaterTime
      Mappings:
      Namespace Name Mixin selector
      official e Lbfp;e:J
      intermediary field_37439 Lnet/minecraft/class_7098;field_37439:J
      named walkTowardsWaterTime Lnet/minecraft/entity/ai/brain/task/WalkTowardsWaterTask;walkTowardsWaterTime:J
  • Constructor Details

    • WalkTowardsWaterTask

      public WalkTowardsWaterTask(int range, float speed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfp;<init>(IF)V
      intermediary <init> Lnet/minecraft/class_7098;<init>(IF)V
      named <init> Lnet/minecraft/entity/ai/brain/task/WalkTowardsWaterTask;<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 Lbfp;a(Lafo;Lbbo;J)V
      intermediary method_41347 Lnet/minecraft/class_7098;method_41347(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named finishRunning Lnet/minecraft/entity/ai/brain/task/WalkTowardsWaterTask;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 Lbfp;a(Lafo;Lbbo;)Z
      intermediary method_41346 Lnet/minecraft/class_7098;method_41346(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/WalkTowardsWaterTask;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 Lbfp;b(Lafo;Lbbo;J)V
      intermediary method_41348 Lnet/minecraft/class_7098;method_41348(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named run Lnet/minecraft/entity/ai/brain/task/WalkTowardsWaterTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V