Package net.minecraft.entity.ai
Class FuzzyTargeting
java.lang.Object
net.minecraft.entity.ai.FuzzyTargeting
Path targeting utilities using fuzzy, or approximated, positions from
FuzzyPositions
.- Mappings:
Namespace Name official bdg
intermediary net/minecraft/class_5534
named net/minecraft/entity/ai/FuzzyTargeting
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfind(PathAwareEntity entity, int horizontalRange, int verticalRange)
find(PathAwareEntity entity, int horizontalRange, int verticalRange, ToDoubleFunction<BlockPos> scorer)
findFrom(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d start)
findTo(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d end)
findValid(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d direction, boolean posTargetInRange)
tryMake(PathAwareEntity entity, int horizontalRange, boolean posTargetInRange, BlockPos relativeInRangePos)
validate(PathAwareEntity entity, BlockPos pos)
-
Constructor Details
-
FuzzyTargeting
public FuzzyTargeting()
-
-
Method Details
-
find
@Nullable public static @Nullable Vec3d find(PathAwareEntity entity, int horizontalRange, int verticalRange)- Mappings:
Namespace Name Mixin selector official a
Lbdg;a(Lauc;II)Ldna;
intermediary method_31527
Lnet/minecraft/class_5534;method_31527(Lnet/minecraft/class_1314;II)Lnet/minecraft/class_243;
named find
Lnet/minecraft/entity/ai/FuzzyTargeting;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, ToDoubleFunction<BlockPos> scorer)- Mappings:
Namespace Name Mixin selector official a
Lbdg;a(Lauc;IILjava/util/function/ToDoubleFunction;)Ldna;
intermediary method_31530
Lnet/minecraft/class_5534;method_31530(Lnet/minecraft/class_1314;IILjava/util/function/ToDoubleFunction;)Lnet/minecraft/class_243;
named find
Lnet/minecraft/entity/ai/FuzzyTargeting;find(Lnet/minecraft/entity/mob/PathAwareEntity;IILjava/util/function/ToDoubleFunction;)Lnet/minecraft/util/math/Vec3d;
-
findTo
@Nullable public static @Nullable Vec3d findTo(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d end)- Mappings:
Namespace Name Mixin selector official a
Lbdg;a(Lauc;IILdna;)Ldna;
intermediary method_31528
Lnet/minecraft/class_5534;method_31528(Lnet/minecraft/class_1314;IILnet/minecraft/class_243;)Lnet/minecraft/class_243;
named findTo
Lnet/minecraft/entity/ai/FuzzyTargeting;findTo(Lnet/minecraft/entity/mob/PathAwareEntity;IILnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
-
findFrom
@Nullable public static @Nullable Vec3d findFrom(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d start)- Mappings:
Namespace Name Mixin selector official b
Lbdg;b(Lauc;IILdna;)Ldna;
intermediary method_31534
Lnet/minecraft/class_5534;method_31534(Lnet/minecraft/class_1314;IILnet/minecraft/class_243;)Lnet/minecraft/class_243;
named findFrom
Lnet/minecraft/entity/ai/FuzzyTargeting;findFrom(Lnet/minecraft/entity/mob/PathAwareEntity;IILnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
-
findValid
@Nullable private static @Nullable Vec3d findValid(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d direction, boolean posTargetInRange)- Mappings:
Namespace Name Mixin selector official a
Lbdg;a(Lauc;IILdna;Z)Ldna;
intermediary method_31529
Lnet/minecraft/class_5534;method_31529(Lnet/minecraft/class_1314;IILnet/minecraft/class_243;Z)Lnet/minecraft/class_243;
named findValid
Lnet/minecraft/entity/ai/FuzzyTargeting;findValid(Lnet/minecraft/entity/mob/PathAwareEntity;IILnet/minecraft/util/math/Vec3d;Z)Lnet/minecraft/util/math/Vec3d;
-
validate
- Mappings:
Namespace Name Mixin selector official a
Lbdg;a(Lauc;Lgg;)Lgg;
intermediary method_31533
Lnet/minecraft/class_5534;method_31533(Lnet/minecraft/class_1314;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
named validate
Lnet/minecraft/entity/ai/FuzzyTargeting;validate(Lnet/minecraft/entity/mob/PathAwareEntity;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
-
tryMake
@Nullable public static @Nullable BlockPos tryMake(PathAwareEntity entity, int horizontalRange, boolean posTargetInRange, BlockPos relativeInRangePos)- Mappings:
Namespace Name Mixin selector official a
Lbdg;a(Lauc;IZLgg;)Lgg;
intermediary method_31532
Lnet/minecraft/class_5534;method_31532(Lnet/minecraft/class_1314;IZLnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
named tryMake
Lnet/minecraft/entity/ai/FuzzyTargeting;tryMake(Lnet/minecraft/entity/mob/PathAwareEntity;IZLnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
-