Class StayAboveWaterTask<T extends MobEntity>

java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<T>
net.minecraft.entity.ai.brain.task.StayAboveWaterTask<T>
All Implemented Interfaces:
Task<T>

public class StayAboveWaterTask<T extends MobEntity> extends MultiTickTask<T>
Mappings:
Namespace Name
named net/minecraft/entity/ai/brain/task/StayAboveWaterTask
intermediary net/minecraft/class_4125
official cas
  • Field Details

    • chance

      private final float chance
      Mappings:
      Namespace Name Mixin selector
      named chance Lnet/minecraft/entity/ai/brain/task/StayAboveWaterTask;chance:F
      intermediary field_18387 Lnet/minecraft/class_4125;field_18387:F
      official c Lcas;c:F
  • Constructor Details

    • StayAboveWaterTask

      public StayAboveWaterTask(float chance)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/ai/brain/task/StayAboveWaterTask;<init>(F)V
      intermediary <init> Lnet/minecraft/class_4125;<init>(F)V
      official <init> Lcas;<init>(F)V
  • Method Details

    • isUnderwater

      public static <T extends MobEntity> boolean isUnderwater(T entity)
      Mappings:
      Namespace Name Mixin selector
      named isUnderwater Lnet/minecraft/entity/ai/brain/task/StayAboveWaterTask;isUnderwater(Lnet/minecraft/entity/mob/MobEntity;)Z
      intermediary method_55700 Lnet/minecraft/class_4125;method_55700(Lnet/minecraft/class_1308;)Z
      official a Lcas;a(Lbwh;)Z
    • shouldRun

      protected boolean shouldRun(ServerWorld serverWorld, MobEntity mobEntity)
      Overrides:
      shouldRun in class MultiTickTask<T extends MobEntity>
      Mappings:
      Namespace Name Mixin selector
      named shouldRun Lnet/minecraft/entity/ai/brain/task/StayAboveWaterTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
      intermediary method_19010 Lnet/minecraft/class_4125;method_19010(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
      official a Lcas;a(Lash;Lbwh;)Z
    • shouldKeepRunning

      protected boolean shouldKeepRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)
      Overrides:
      shouldKeepRunning in class MultiTickTask<T extends MobEntity>
      Mappings:
      Namespace Name Mixin selector
      named shouldKeepRunning Lnet/minecraft/entity/ai/brain/task/StayAboveWaterTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)Z
      intermediary method_19011 Lnet/minecraft/class_4125;method_19011(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Z
      official a Lcas;a(Lash;Lbwh;J)Z
    • keepRunning

      protected void keepRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)
      Overrides:
      keepRunning in class MultiTickTask<T extends MobEntity>
      Mappings:
      Namespace Name Mixin selector
      named keepRunning Lnet/minecraft/entity/ai/brain/task/StayAboveWaterTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
      intermediary method_19012 Lnet/minecraft/class_4125;method_19012(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
      official b Lcas;b(Lash;Lbwh;J)V