mirror of https://github.com/FabricMC/yarn.git
Mapped some stuff in util.math (#2010)
* Mapped some stuff in util.math * Update mappings/net/minecraft/util/math/BlockPos.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * changed to Co-authored-by: liach <7806504+liach@users.noreply.github.com>
This commit is contained in:
parent
de4ef55992
commit
f1a60b3f99
|
@ -171,6 +171,25 @@ CLASS net/minecraft/class_2338 net/minecraft/util/math/BlockPos
|
|||
ARG 0 values
|
||||
METHOD method_29715 stream (Lnet/minecraft/class_238;)Ljava/util/stream/Stream;
|
||||
ARG 0 box
|
||||
METHOD method_30512 iterateInSquare (Lnet/minecraft/class_2338;ILnet/minecraft/class_2350;Lnet/minecraft/class_2350;)Ljava/lang/Iterable;
|
||||
COMMENT Iterates block positions around the {@code center} in a square of
|
||||
COMMENT ({@code 2 * radius + 1}) by ({@code 2 * radius + 1}). The blocks
|
||||
COMMENT are iterated in a (square) spiral around the center.
|
||||
COMMENT
|
||||
COMMENT <p>The first block returned is the center, then the iterator moves
|
||||
COMMENT a block towards the first direction, followed by moving along
|
||||
COMMENT the second direction.
|
||||
COMMENT
|
||||
COMMENT @param center the center of iteration
|
||||
COMMENT @param radius the maximum chebychev distance
|
||||
COMMENT @param firstDirection the direction the iterator moves first
|
||||
COMMENT @param secondDirection the direction the iterator moves after the first
|
||||
COMMENT
|
||||
COMMENT @throws IllegalStateException when the 2 directions lie on the same axis
|
||||
ARG 0 center
|
||||
ARG 1 radius
|
||||
ARG 2 firstDirection
|
||||
ARG 3 secondDirection
|
||||
METHOD method_30513 offset (Lnet/minecraft/class_2350$class_2351;I)Lnet/minecraft/class_2338;
|
||||
ARG 1 axis
|
||||
ARG 2 distance
|
||||
|
@ -190,6 +209,7 @@ CLASS net/minecraft/class_2338 net/minecraft/util/math/BlockPos
|
|||
FIELD field_23102 dx I
|
||||
FIELD field_23103 dy I
|
||||
FIELD field_23378 pos Lnet/minecraft/class_2338$class_2339;
|
||||
FIELD field_23379 swapZ Z
|
||||
CLASS 3
|
||||
FIELD field_23105 size I
|
||||
FIELD field_23106 sizeX I
|
||||
|
@ -202,6 +222,13 @@ CLASS net/minecraft/class_2338 net/minecraft/util/math/BlockPos
|
|||
CLASS 4
|
||||
FIELD field_25903 directions [Lnet/minecraft/class_2350;
|
||||
FIELD field_25904 pos Lnet/minecraft/class_2338$class_2339;
|
||||
FIELD field_25905 maxDirectionChanges I
|
||||
FIELD field_25906 directionChangeCount I
|
||||
FIELD field_25907 maxSteps I
|
||||
FIELD field_25908 steps I
|
||||
FIELD field_25909 currentX I
|
||||
FIELD field_25910 currentY I
|
||||
FIELD field_25911 currentZ I
|
||||
CLASS class_2339 Mutable
|
||||
METHOD method_10098 move (Lnet/minecraft/class_2350;)Lnet/minecraft/class_2338$class_2339;
|
||||
COMMENT Moves this mutable block position by 1 block in the given direction.
|
||||
|
|
|
@ -78,6 +78,12 @@ CLASS net/minecraft/class_238 net/minecraft/util/math/Box
|
|||
METHOD method_29968 from (Lnet/minecraft/class_243;)Lnet/minecraft/class_238;
|
||||
ARG 0 vec3d
|
||||
METHOD method_30048 of (Lnet/minecraft/class_243;DDD)Lnet/minecraft/class_238;
|
||||
ARG 0 center
|
||||
ARG 1 dx
|
||||
ARG 3 dy
|
||||
ARG 5 dz
|
||||
METHOD method_33660 enclosing (Ljava/lang/Iterable;)Lnet/minecraft/class_238;
|
||||
ARG 0 boxes
|
||||
METHOD method_989 offset (DDD)Lnet/minecraft/class_238;
|
||||
ARG 1 x
|
||||
ARG 3 y
|
||||
|
|
|
@ -21,6 +21,8 @@ CLASS net/minecraft/class_1923 net/minecraft/util/math/ChunkPos
|
|||
METHOD method_19281 stream (Lnet/minecraft/class_1923;Lnet/minecraft/class_1923;)Ljava/util/stream/Stream;
|
||||
ARG 0 pos1
|
||||
ARG 1 pos2
|
||||
METHOD method_24022 getChebyshevDistance (Lnet/minecraft/class_1923;)I
|
||||
ARG 1 pos
|
||||
METHOD method_8323 getStartPos ()Lnet/minecraft/class_2338;
|
||||
METHOD method_8324 toLong ()J
|
||||
METHOD method_8325 getPackedX (J)I
|
||||
|
|
|
@ -134,6 +134,10 @@ CLASS net/minecraft/class_4076 net/minecraft/util/math/ChunkSectionPos
|
|||
METHOD method_32205 getOffsetPos (II)I
|
||||
ARG 0 chunkCoord
|
||||
ARG 1 offset
|
||||
METHOD method_33705 from (Lnet/minecraft/class_2791;)Lnet/minecraft/class_4076;
|
||||
ARG 0 chunk
|
||||
METHOD method_33706 toLong (Lnet/minecraft/class_2338;)J
|
||||
ARG 0 pos
|
||||
CLASS 1
|
||||
FIELD field_19263 iterator Lnet/minecraft/class_3980;
|
||||
METHOD tryAdvance (Ljava/util/function/Consumer;)Z
|
||||
|
|
Loading…
Reference in New Issue