diff --git a/mappings/net/minecraft/util/math/Matrix3f.mapping b/mappings/net/minecraft/util/math/Matrix3f.mapping index c6ab4f6f7b..1c752919ab 100644 --- a/mappings/net/minecraft/util/math/Matrix3f.mapping +++ b/mappings/net/minecraft/util/math/Matrix3f.mapping @@ -12,8 +12,16 @@ CLASS net/minecraft/class_4581 net/minecraft/util/math/Matrix3f FIELD field_21639 a20 F FIELD field_21640 a21 F FIELD field_21641 a22 F + FIELD field_31077 ORDER I + COMMENT The number of rows and columns ({@value}) this matrix has. + METHOD (Lnet/minecraft/class_1158;)V + ARG 1 quaternion + METHOD (Lnet/minecraft/class_1159;)V + ARG 1 matrix METHOD (Lnet/minecraft/class_4581;)V ARG 1 source + METHOD equals (Ljava/lang/Object;)Z + ARG 1 object METHOD method_22847 transpose ()V METHOD method_22849 getSinAndCosOfRotation (FFF)Lcom/mojang/datafixers/util/Pair; ARG 0 upperLeft @@ -25,6 +33,8 @@ CLASS net/minecraft/class_4581 net/minecraft/util/math/Matrix3f METHOD method_22855 multiply (Lnet/minecraft/class_4581;)V ARG 1 other METHOD method_22856 loadIdentity ()V + METHOD method_22857 (Lnet/minecraft/class_4581;)Lnet/minecraft/class_1158; + ARG 0 matrix METHOD method_23274 multiply (Lnet/minecraft/class_1158;)V ARG 1 quaternion METHOD method_23296 copy ()Lnet/minecraft/class_4581; @@ -40,3 +50,58 @@ CLASS net/minecraft/class_4581 net/minecraft/util/math/Matrix3f ARG 1 x ARG 2 y ARG 3 value + METHOD method_35259 pack (II)I + ARG 0 x + ARG 1 y + METHOD method_35260 (Lnet/minecraft/class_4581;Lnet/minecraft/class_1158;)V + ARG 0 matrix + ARG 1 quaternion + METHOD method_35261 readRowFirst (Ljava/nio/FloatBuffer;)V + COMMENT Reads a matrix from the buffer in row-major order. + COMMENT + COMMENT @see #readColumnFirst(FloatBuffer) + COMMENT @see #read(FloatBuffer, boolean) + ARG 1 buf + METHOD method_35262 read (Ljava/nio/FloatBuffer;Z)V + COMMENT Reads a matrix from the buffer. + COMMENT + COMMENT @see #readRowFirst(FloatBuffer) + COMMENT @see #readColumnFirst(FloatBuffer) + ARG 1 buf + ARG 2 columnFirst + COMMENT {@code true} to read in column-major order; {@code false} to read in + COMMENT row-major order + METHOD method_35263 readColumnFirst (Ljava/nio/FloatBuffer;)V + COMMENT Reads a matrix from the buffer in column-major order. + COMMENT + COMMENT @see #readRowFirst(FloatBuffer) + COMMENT @see #read(FloatBuffer, boolean) + ARG 1 buf + METHOD method_35264 write (Ljava/nio/FloatBuffer;Z)V + COMMENT Writes this matrix to the buffer. + COMMENT + COMMENT @see #writeRowFirst(FloatBuffer) + COMMENT @see #writeColumnFirst(FloatBuffer) + ARG 1 buf + ARG 2 columnFirst + COMMENT {@code true} to write in column-major order; {@code false} to write in + COMMENT row-major order + METHOD method_35265 add (Lnet/minecraft/class_4581;)V + ARG 1 matrix + METHOD method_35266 writeRowFirst (Ljava/nio/FloatBuffer;)V + COMMENT Writes this matrix to the buffer in row-major order. + COMMENT + COMMENT @see #writeColumnFirst(FloatBuffer) + COMMENT @see #write(FloatBuffer, boolean) + ARG 1 buf + METHOD method_35267 subtract (Lnet/minecraft/class_4581;)V + ARG 1 matrix + METHOD method_35268 writeColumnFirst (Ljava/nio/FloatBuffer;)V + COMMENT Writes this matrix to the buffer in column-major order. + COMMENT + COMMENT @see #writeRowFirst(FloatBuffer) + COMMENT @see #write(FloatBuffer, boolean) + ARG 1 buf + METHOD method_35269 determinant ()F + METHOD method_35270 trace ()F + COMMENT Returns the sum of the elements on the main diagonal. diff --git a/mappings/net/minecraft/util/math/Matrix4f.mapping b/mappings/net/minecraft/util/math/Matrix4f.mapping index b13838497a..c6c9c6623d 100644 --- a/mappings/net/minecraft/util/math/Matrix4f.mapping +++ b/mappings/net/minecraft/util/math/Matrix4f.mapping @@ -15,6 +15,12 @@ CLASS net/minecraft/class_1159 net/minecraft/util/math/Matrix4f FIELD field_21665 a31 F FIELD field_21666 a32 F FIELD field_21667 a33 F + FIELD field_31601 ORDER I + COMMENT The number of rows and columns ({@value}) this matrix has. + METHOD (Lnet/minecraft/class_1158;)V + ARG 1 quaternion + METHOD (Lnet/minecraft/class_1159;)V + ARG 1 matrix METHOD equals (Ljava/lang/Object;)Z ARG 1 o METHOD method_22668 loadIdentity ()V @@ -48,13 +54,64 @@ CLASS net/minecraft/class_1159 net/minecraft/util/math/Matrix4f ARG 1 x ARG 2 y ARG 3 z + METHOD method_35434 load (Lnet/minecraft/class_1159;)V + ARG 1 source + METHOD method_35435 readRowFirst (Ljava/nio/FloatBuffer;)V + COMMENT Reads a matrix from the buffer in row-major order. + COMMENT + COMMENT @see #readColumnFirst(FloatBuffer) + COMMENT @see #read(FloatBuffer, boolean) + ARG 1 buf + METHOD method_35436 read (Ljava/nio/FloatBuffer;Z)V + COMMENT Reads a matrix from the buffer. + COMMENT + COMMENT @see #readRowFirst(FloatBuffer) + COMMENT @see #readColumnFirst(FloatBuffer) + ARG 1 buf + ARG 2 columnFirst + COMMENT {@code true} to read in column-major order; {@code false} to read in + COMMENT row-major order + METHOD method_35437 isInteger (F)Z + ARG 0 value + METHOD method_35438 readColumnFirst (Ljava/nio/FloatBuffer;)V + COMMENT Reads a matrix from the buffer in column-major order. + COMMENT + COMMENT @see #readRowFirst(FloatBuffer) + COMMENT @see #read(FloatBuffer, boolean) + ARG 1 buf + METHOD method_35439 write (Ljava/nio/FloatBuffer;Z)V + COMMENT Writes this matrix to the buffer. + COMMENT + COMMENT @see #writeRowFirst(FloatBuffer) + COMMENT @see #writeColumnFirst(FloatBuffer) + ARG 1 buf + ARG 2 columnFirst + COMMENT {@code true} to write in column-major order; {@code false} to write in + COMMENT row-major order + METHOD method_35440 add (Lnet/minecraft/class_1159;)V + ARG 1 matrix + METHOD method_35441 determinant ()F + METHOD method_35442 subtract (Lnet/minecraft/class_1159;)V + ARG 1 matrix + METHOD method_35443 writeColumnFirst (Ljava/nio/FloatBuffer;)V + COMMENT Writes this matrix to the buffer in column-major order. + COMMENT + COMMENT @see #writeRowFirst(FloatBuffer) + COMMENT @see #write(FloatBuffer, boolean) + ARG 1 buf + METHOD method_35444 trace ()F + COMMENT Returns the sum of the elements on the main diagonal. METHOD method_4929 viewboxMatrix (DFFF)Lnet/minecraft/class_1159; ARG 0 fov ARG 2 aspectRatio ARG 3 cameraDepth ARG 4 viewDistance - METHOD method_4932 writeToBuffer (Ljava/nio/FloatBuffer;)V - ARG 1 buffer + METHOD method_4932 writeRowFirst (Ljava/nio/FloatBuffer;)V + COMMENT Writes this matrix to the buffer in row-major order. + COMMENT + COMMENT @see #writeColumnFirst(FloatBuffer) + COMMENT @see #write(FloatBuffer, boolean) + ARG 1 buf METHOD method_4933 projectionMatrix (FFFF)Lnet/minecraft/class_1159; ARG 0 width ARG 1 height