mirror of https://github.com/FabricMC/yarn.git
53 lines
2.5 KiB
Plaintext
53 lines
2.5 KiB
Plaintext
CLASS net/minecraft/class_5535 net/minecraft/entity/ai/FuzzyPositions
|
|
FIELD field_30264 GAUSS_RANGE I
|
|
METHOD method_31537 towardTarget (Lnet/minecraft/class_1314;ILnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
|
|
COMMENT Adjusts the input {@code fuzz} slightly toward the given {@code entity}'s
|
|
COMMENT {@link net.minecraft.entity.mob.MobEntity#getPositionTarget() position target}
|
|
COMMENT if it exists.
|
|
ARG 0 entity
|
|
ARG 1 horizontalRange
|
|
ARG 2 random
|
|
ARG 3 fuzz
|
|
METHOD method_31538 guessBestPathTarget (Lnet/minecraft/class_1314;Ljava/util/function/Supplier;)Lnet/minecraft/class_243;
|
|
COMMENT Calls {@link #guessBest(Supplier, ToDoubleFunction)} with the {@code entity}'s
|
|
COMMENT path finding favor as the {@code scorer}.
|
|
ARG 0 entity
|
|
ARG 1 factory
|
|
METHOD method_31539 upWhile (Lnet/minecraft/class_2338;IILjava/util/function/Predicate;)Lnet/minecraft/class_2338;
|
|
COMMENT Returns the {@code extraAbove + 1}th closest position higher than the
|
|
COMMENT input {@code pos} that does not fulfill {@code condition}, or a
|
|
COMMENT position with y set to {@code maxY}.
|
|
ARG 0 pos
|
|
ARG 1 extraAbove
|
|
ARG 2 max
|
|
ARG 3 condition
|
|
METHOD method_31540 upWhile (Lnet/minecraft/class_2338;ILjava/util/function/Predicate;)Lnet/minecraft/class_2338;
|
|
COMMENT Returns the closest position higher than the input {@code pos} that does
|
|
COMMENT not fulfill {@code condition}, or a position with y set to {@code maxY}.
|
|
ARG 0 pos
|
|
ARG 1 maxY
|
|
ARG 2 condition
|
|
METHOD method_31541 localFuzz (Lnet/minecraft/class_5819;II)Lnet/minecraft/class_2338;
|
|
COMMENT Creates a fuzzy offset position within the given horizontal and vertical
|
|
COMMENT ranges.
|
|
ARG 0 random
|
|
ARG 1 horizontalRange
|
|
ARG 2 verticalRange
|
|
METHOD method_31542 localFuzz (Lnet/minecraft/class_5819;IIIDDD)Lnet/minecraft/class_2338;
|
|
COMMENT Tries to create a fuzzy offset position from the direction and the angle
|
|
COMMENT range given. It fulfills the constraints given by {@code horizontalRange}
|
|
COMMENT and {@code verticalRange} and returns {@code null} if it cannot do so.
|
|
ARG 0 random
|
|
ARG 1 horizontalRange
|
|
ARG 2 verticalRange
|
|
ARG 3 startHeight
|
|
ARG 4 directionX
|
|
ARG 6 directionZ
|
|
ARG 8 angleRange
|
|
METHOD method_31543 guessBest (Ljava/util/function/Supplier;Ljava/util/function/ToDoubleFunction;)Lnet/minecraft/class_243;
|
|
COMMENT Returns the {@link Vec3d#ofBottomCenter(BlockPos) bottom center} of a highest scoring
|
|
COMMENT position, as determined by {@code scorer}, out of 10 tries on positions obtained from
|
|
COMMENT {@code factory}.
|
|
ARG 0 factory
|
|
ARG 1 scorer
|