类 NoPenaltyTargeting


  • public class NoPenaltyTargeting
    extends Object
    Similar to FuzzyTargeting, but the positions this class' utility methods find never have pathfinding penalties.
    Mappings:
    Namespace Name
    official bcf
    intermediary net/minecraft/class_5532
    named net/minecraft/entity/ai/NoPenaltyTargeting
    • 构造器详细资料

      • NoPenaltyTargeting

        public NoPenaltyTargeting()
    • 方法详细资料

      • find

        @Nullable
        public static @Nullable Vec3d find​(PathAwareEntity entity,
                                           int horizontalRange,
                                           int verticalRange)
        Mappings:
        Namespace Name Mixin selector
        official a Lbcf;a(Latg;II)Ldma;
        intermediary method_31510 Lnet/minecraft/class_5532;method_31510(Lnet/minecraft/class_1314;II)Lnet/minecraft/class_243;
        named find Lnet/minecraft/entity/ai/NoPenaltyTargeting;find(Lnet/minecraft/entity/mob/PathAwareEntity;II)Lnet/minecraft/util/math/Vec3d;
      • find

        @Nullable
        public static @Nullable Vec3d find​(PathAwareEntity entity,
                                           int horizontalRange,
                                           int verticalRange,
                                           Vec3d end,
                                           double angleRange)
        Mappings:
        Namespace Name Mixin selector
        official a Lbcf;a(Latg;IILdma;D)Ldma;
        intermediary method_31512 Lnet/minecraft/class_5532;method_31512(Lnet/minecraft/class_1314;IILnet/minecraft/class_243;D)Lnet/minecraft/class_243;
        named find Lnet/minecraft/entity/ai/NoPenaltyTargeting;find(Lnet/minecraft/entity/mob/PathAwareEntity;IILnet/minecraft/util/math/Vec3d;D)Lnet/minecraft/util/math/Vec3d;
      • find

        @Nullable
        public static @Nullable Vec3d find​(PathAwareEntity entity,
                                           int horizontalRange,
                                           int verticalRange,
                                           Vec3d direction)
        Mappings:
        Namespace Name Mixin selector
        official a Lbcf;a(Latg;IILdma;)Ldma;
        intermediary method_31511 Lnet/minecraft/class_5532;method_31511(Lnet/minecraft/class_1314;IILnet/minecraft/class_243;)Lnet/minecraft/class_243;
        named find Lnet/minecraft/entity/ai/NoPenaltyTargeting;find(Lnet/minecraft/entity/mob/PathAwareEntity;IILnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
      • tryMake

        @Nullable
        private static @Nullable BlockPos tryMake​(PathAwareEntity entity,
                                                  int horizontalRange,
                                                  boolean posTargetInRange,
                                                  BlockPos fuzz)
        Mappings:
        Namespace Name Mixin selector
        official a Lbcf;a(Latg;IZLgb;)Lgb;
        intermediary method_31516 Lnet/minecraft/class_5532;method_31516(Lnet/minecraft/class_1314;IZLnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
        named tryMake Lnet/minecraft/entity/ai/NoPenaltyTargeting;tryMake(Lnet/minecraft/entity/mob/PathAwareEntity;IZLnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;