Class OpenDoorsTask

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.OpenDoorsTask

public class OpenDoorsTask extends Task<LivingEntity>
Mappings:
Namespace Name
official ben
intermediary net/minecraft/class_4107
named net/minecraft/entity/ai/brain/task/OpenDoorsTask
  • Field Details

    • RUN_TIME

      private static final int RUN_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lben;a:I
      intermediary field_30125 Lnet/minecraft/class_4107;field_30125:I
      named RUN_TIME Lnet/minecraft/entity/ai/brain/task/OpenDoorsTask;RUN_TIME:I
    • PATHING_DISTANCE

      private static final double PATHING_DISTANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lben;d:D
      intermediary field_30126 Lnet/minecraft/class_4107;field_30126:D
      named PATHING_DISTANCE Lnet/minecraft/entity/ai/brain/task/OpenDoorsTask;PATHING_DISTANCE:D
    • REACH_DISTANCE

      private static final double REACH_DISTANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lben;e:D
      intermediary field_30127 Lnet/minecraft/class_4107;field_30127:D
      named REACH_DISTANCE Lnet/minecraft/entity/ai/brain/task/OpenDoorsTask;REACH_DISTANCE:D
    • pathNode

      @Nullable private @Nullable PathNode pathNode
      Mappings:
      Namespace Name Mixin selector
      official f Lben;f:Ldqj;
      intermediary field_26387 Lnet/minecraft/class_4107;field_26387:Lnet/minecraft/class_9;
      named pathNode Lnet/minecraft/entity/ai/brain/task/OpenDoorsTask;pathNode:Lnet/minecraft/entity/ai/pathing/PathNode;
    • ticks

      private int ticks
      Mappings:
      Namespace Name Mixin selector
      official g Lben;g:I
      intermediary field_26388 Lnet/minecraft/class_4107;field_26388:I
      named ticks Lnet/minecraft/entity/ai/brain/task/OpenDoorsTask;ticks:I
  • Constructor Details

    • OpenDoorsTask

      public OpenDoorsTask()
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld world, LivingEntity entity)
      Overrides:
      shouldRun in class Task<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbdo;a(Lagg;Lbcc;)Z
      intermediary method_18919 Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
    • run

      protected void run(ServerWorld world, LivingEntity entity, long time)
      Overrides:
      run in class Task<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbdo;a(Lagg;Lbcc;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
    • pathToDoor

      public static void pathToDoor(ServerWorld world, LivingEntity entity, @Nullable @Nullable PathNode lastNode, @Nullable @Nullable PathNode currentNode)
      Mappings:
      Namespace Name Mixin selector
      official a Lben;a(Lagg;Lbcc;Ldqj;Ldqj;)V
      intermediary method_30760 Lnet/minecraft/class_4107;method_30760(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;Lnet/minecraft/class_9;Lnet/minecraft/class_9;)V
      named pathToDoor Lnet/minecraft/entity/ai/brain/task/OpenDoorsTask;pathToDoor(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/ai/pathing/PathNode;Lnet/minecraft/entity/ai/pathing/PathNode;)V
    • hasOtherMobReachedDoor

      private static boolean hasOtherMobReachedDoor(ServerWorld world, LivingEntity entity, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lben;a(Lagg;Lbcc;Lgt;)Z
      intermediary method_30761 Lnet/minecraft/class_4107;method_30761(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;Lnet/minecraft/class_2338;)Z
      named hasOtherMobReachedDoor Lnet/minecraft/entity/ai/brain/task/OpenDoorsTask;hasOtherMobReachedDoor(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/BlockPos;)Z
    • hasReached

      private static boolean hasReached(ServerWorld world, LivingEntity entity, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official b Lben;b(Lagg;Lbcc;Lgt;)Z
      intermediary method_30766 Lnet/minecraft/class_4107;method_30766(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;Lnet/minecraft/class_2338;)Z
      named hasReached Lnet/minecraft/entity/ai/brain/task/OpenDoorsTask;hasReached(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/BlockPos;)Z
    • cannotReachDoor

      private static boolean cannotReachDoor(ServerWorld world, LivingEntity entity, GlobalPos doorPos)
      Mappings:
      Namespace Name Mixin selector
      official a Lben;a(Lagg;Lbcc;Lhb;)Z
      intermediary method_30762 Lnet/minecraft/class_4107;method_30762(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;Lnet/minecraft/class_4208;)Z
      named cannotReachDoor Lnet/minecraft/entity/ai/brain/task/OpenDoorsTask;cannotReachDoor(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/GlobalPos;)Z
    • rememberToCloseDoor

      private void rememberToCloseDoor(ServerWorld world, LivingEntity entity, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official c Lben;c(Lagg;Lbcc;Lgt;)V
      intermediary method_30767 Lnet/minecraft/class_4107;method_30767(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;Lnet/minecraft/class_2338;)V
      named rememberToCloseDoor Lnet/minecraft/entity/ai/brain/task/OpenDoorsTask;rememberToCloseDoor(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/BlockPos;)V