2021-02-23 15:33:28 -05:00
|
|
|
CLASS net/minecraft/class_5532 net/minecraft/entity/ai/NoPenaltyTargeting
|
|
|
|
COMMENT Similar to {@link FuzzyTargeting}, but the positions this class' utility methods
|
|
|
|
COMMENT find never have pathfinding penalties.
|
|
|
|
METHOD method_31510 find (Lnet/minecraft/class_1314;II)Lnet/minecraft/class_243;
|
2021-11-03 10:12:48 -04:00
|
|
|
COMMENT Paths to a random reachable position with no penalty.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the chosen end position or null if no valid positions could be found
|
2021-02-23 15:33:28 -05:00
|
|
|
ARG 0 entity
|
2021-11-03 10:12:48 -04:00
|
|
|
COMMENT the entity doing the pathing
|
2021-02-23 15:33:28 -05:00
|
|
|
ARG 1 horizontalRange
|
2021-11-03 10:12:48 -04:00
|
|
|
COMMENT the horizontal pathing range (how far the point can be from the entity's starting position on the X or Z range)
|
2021-02-23 15:33:28 -05:00
|
|
|
ARG 2 verticalRange
|
2021-11-03 10:12:48 -04:00
|
|
|
COMMENT the vertical pathing range (how far the point can be from the entity's starting position on the Y range)
|
|
|
|
METHOD method_31511 findFrom (Lnet/minecraft/class_1314;IILnet/minecraft/class_243;)Lnet/minecraft/class_243;
|
|
|
|
COMMENT Paths to a position leading away from a given starting point.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the chosen end position or null if no valid positions could be found
|
2021-02-23 15:33:28 -05:00
|
|
|
ARG 0 entity
|
2021-11-03 10:12:48 -04:00
|
|
|
COMMENT the entity doing the pathing
|
2021-02-23 15:33:28 -05:00
|
|
|
ARG 1 horizontalRange
|
2021-11-03 10:12:48 -04:00
|
|
|
COMMENT the horizontal pathing range (how far the point can be from the entity's starting position on the X or Z range)
|
2021-02-23 15:33:28 -05:00
|
|
|
ARG 2 verticalRange
|
2021-11-03 10:12:48 -04:00
|
|
|
COMMENT the vertical pathing range (how far the point can be from the entity's starting position on the Y range)
|
|
|
|
ARG 3 start
|
|
|
|
COMMENT the position to path away from
|
|
|
|
METHOD method_31512 findTo (Lnet/minecraft/class_1314;IILnet/minecraft/class_243;D)Lnet/minecraft/class_243;
|
|
|
|
COMMENT Paths to a position leading towards a given end-point.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the chosen end position or null if no valid positions could be found
|
2021-02-23 15:33:28 -05:00
|
|
|
ARG 0 entity
|
2021-11-03 10:12:48 -04:00
|
|
|
COMMENT the entity doing the pathing
|
2021-02-23 15:33:28 -05:00
|
|
|
ARG 1 horizontalRange
|
2021-11-03 10:12:48 -04:00
|
|
|
COMMENT the horizontal pathing range (how far the point can be from the entity's starting position on the X or Z range)
|
2021-02-23 15:33:28 -05:00
|
|
|
ARG 2 verticalRange
|
2021-11-03 10:12:48 -04:00
|
|
|
COMMENT the vertical pathing range (how far the point can be from the entity's starting position on the Y range)
|
2021-02-23 15:33:28 -05:00
|
|
|
ARG 3 end
|
2021-11-03 10:12:48 -04:00
|
|
|
COMMENT the position to path towards
|
2021-02-23 15:33:28 -05:00
|
|
|
ARG 4 angleRange
|
2021-11-03 10:12:48 -04:00
|
|
|
COMMENT the minimum angle of approach
|
2021-02-23 15:33:28 -05:00
|
|
|
METHOD method_31516 tryMake (Lnet/minecraft/class_1314;IZLnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
|
|
|
|
ARG 0 entity
|
|
|
|
ARG 1 horizontalRange
|
|
|
|
ARG 2 posTargetInRange
|
|
|
|
ARG 3 fuzz
|