Class OpenDoorsTask

java.lang.Object
net.minecraft.entity.ai.brain.task.OpenDoorsTask

public class OpenDoorsTask extends Object
Mappings:
Namespace Name
official blv
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 Lblv;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 b Lblv;b: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 c Lblv;c:D
      intermediary field_30127 Lnet/minecraft/class_4107;field_30127:D
      named REACH_DISTANCE Lnet/minecraft/entity/ai/brain/task/OpenDoorsTask;REACH_DISTANCE:D
  • Constructor Details

    • OpenDoorsTask

      public OpenDoorsTask()
  • Method Details

    • create

      public static Task<LivingEntity> create()
      Mappings:
      Namespace Name Mixin selector
      official a Lblv;a()Lbky;
      intermediary method_46964 Lnet/minecraft/class_4107;method_46964()Lnet/minecraft/class_7893;
      named create Lnet/minecraft/entity/ai/brain/task/OpenDoorsTask;create()Lnet/minecraft/entity/ai/brain/task/Task;
    • pathToDoor

      public static void pathToDoor(ServerWorld world, LivingEntity entity, @Nullable @Nullable PathNode lastNode, @Nullable @Nullable PathNode currentNode, Set<GlobalPos> doors, Optional<List<LivingEntity>> otherMobs)
      Mappings:
      Namespace Name Mixin selector
      official a Lblv;a(Lakq;Lbjg;Leaz;Leaz;Ljava/util/Set;Ljava/util/Optional;)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;Ljava/util/Set;Ljava/util/Optional;)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;Ljava/util/Set;Ljava/util/Optional;)V
    • hasOtherMobReachedDoor

      private static boolean hasOtherMobReachedDoor(LivingEntity entity, BlockPos pos, Optional<List<LivingEntity>> otherMobs)
      Mappings:
      Namespace Name Mixin selector
      official a Lblv;a(Lbjg;Lgw;Ljava/util/Optional;)Z
      intermediary method_30761 Lnet/minecraft/class_4107;method_30761(Lnet/minecraft/class_1309;Lnet/minecraft/class_2338;Ljava/util/Optional;)Z
      named hasOtherMobReachedDoor Lnet/minecraft/entity/ai/brain/task/OpenDoorsTask;hasOtherMobReachedDoor(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/BlockPos;Ljava/util/Optional;)Z
    • hasReached

      private static boolean hasReached(Brain<?> brain, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lblv;a(Lbkg;Lgw;)Z
      intermediary method_30766 Lnet/minecraft/class_4107;method_30766(Lnet/minecraft/class_4095;Lnet/minecraft/class_2338;)Z
      named hasReached Lnet/minecraft/entity/ai/brain/task/OpenDoorsTask;hasReached(Lnet/minecraft/entity/ai/brain/Brain;Lnet/minecraft/util/math/BlockPos;)Z
    • cannotReachDoor

      private static boolean cannotReachDoor(ServerWorld world, LivingEntity entity, GlobalPos doorPos)
      Mappings:
      Namespace Name Mixin selector
      official a Lblv;a(Lakq;Lbjg;Lhd;)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
    • storePos

      private static Optional<Set<GlobalPos>> storePos(MemoryQueryResult<com.mojang.datafixers.kinds.OptionalBox.Mu,Set<GlobalPos>> queryResult, Optional<Set<GlobalPos>> doors, ServerWorld world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lblv;a(Lbok;Ljava/util/Optional;Lakq;Lgw;)Ljava/util/Optional;
      intermediary method_46969 Lnet/minecraft/class_4107;method_46969(Lnet/minecraft/class_7906;Ljava/util/Optional;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Ljava/util/Optional;
      named storePos Lnet/minecraft/entity/ai/brain/task/OpenDoorsTask;storePos(Lnet/minecraft/entity/ai/brain/MemoryQueryResult;Ljava/util/Optional;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Ljava/util/Optional;