Add mappings for more util classes (#3466)

* Add mappings for more util classes

* Fix javadoc lints
This commit is contained in:
Tae Lim Kook 2023-01-31 08:03:27 -05:00 committed by GitHub
parent a76c452f2b
commit 70790a9c6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 92 additions and 1 deletions

View File

@ -7,7 +7,15 @@ CLASS net/minecraft/class_3517 net/minecraft/util/MetricsData
METHOD method_15246 getSamples ()[J
METHOD method_15247 pushSample (J)V
ARG 1 time
METHOD method_15248 scaleSample (JII)I
ARG 1 sample
ARG 3 destScale
ARG 4 srcScale
METHOD method_15249 getStartIndex ()I
METHOD method_15250 getCurrentIndex ()I
METHOD method_15251 wrapIndex (I)I
ARG 1 index
METHOD method_34912 average (I)J
ARG 1 offset
METHOD method_34913 (II)I
ARG 1 offset

View File

@ -1,9 +1,35 @@
CLASS net/minecraft/class_7837 net/minecraft/util/math/MatrixUtil
FIELD field_40746 COT_PI_OVER_8 F
FIELD field_40747 COS_PI_OVER_8 F
FIELD field_40748 SIN_PI_OVER_8 F
METHOD method_46410 qrGivensQuaternion (FF)Lcom/mojang/datafixers/util/Pair;
COMMENT Compute the Givens quaternion for a QR factorization.
COMMENT
COMMENT @return a pair (c, s) = (cos(theta), sin(theta))
COMMENT @see Algorithm 4 of https://pages.cs.wisc.edu/~sifakis/papers/SVD_TR1690.pdf
ARG 0 a1
ARG 1 a2
METHOD method_46411 approximateGivensQuaternion (FFF)Lcom/mojang/datafixers/util/Pair;
COMMENT Compute the approximate Givens rotation factors (c, s) = (cos(phi), sin(phi)) for a 2×2 matrix.
COMMENT
COMMENT @return a pair (c, s) = (cos(phi), sin(phi))
COMMENT
COMMENT @see Algorithm 2 of https://pages.cs.wisc.edu/~sifakis/papers/SVD_TR1690.pdf
ARG 0 a11
COMMENT the top-left element of the matrix
ARG 1 a12
COMMENT the average of the two elements on the minor diagonal
ARG 2 a22
COMMENT the bottom-right element of the matrix
METHOD method_46412 svdDecompose (Lorg/joml/Matrix3f;)Lorg/apache/commons/lang3/tuple/Triple;
COMMENT Performs an approximate singular value decomposition on a 3×3 matrix.
COMMENT
COMMENT @see https://pages.cs.wisc.edu/~sifakis/papers/SVD_TR1690.pdf
ARG 0 A
METHOD method_46413 affineTransform (Lorg/joml/Matrix4f;)Lorg/joml/Matrix4x3f;
ARG 0 matrix
METHOD method_46414 scale (Lorg/joml/Matrix4f;F)Lorg/joml/Matrix4f;
ARG 0 matrix
ARG 1 scalar
METHOD method_46415 applyJacobiIteration (Lorg/joml/Matrix3f;)Lorg/joml/Quaternionf;
ARG 0 S

View File

@ -8,6 +8,7 @@ CLASS net/minecraft/class_5216 net/minecraft/util/math/noise/DoublePerlinNoiseSa
METHOD <init> (Lnet/minecraft/class_5819;Lnet/minecraft/class_5216$class_5487;Z)V
ARG 1 random
ARG 2 parameters
ARG 3 modern
METHOD method_27406 sample (DDD)D
ARG 1 x
ARG 3 y

View File

@ -7,6 +7,9 @@ CLASS net/minecraft/class_5822 net/minecraft/util/math/noise/InterpolatedNoiseSa
FIELD field_36630 maxValue D
FIELD field_37206 CODEC Lnet/minecraft/class_7243;
FIELD field_38269 SCALE_AND_FACTOR_RANGE Lcom/mojang/serialization/Codec;
FIELD field_38270 MAP_CODEC Lcom/mojang/serialization/MapCodec;
FIELD field_38271 scaledXzScale D
FIELD field_38272 scaledYScale D
FIELD field_38273 xzFactor D
FIELD field_38274 yFactor D
FIELD field_38275 smearScaleMultiplier D

View File

@ -7,6 +7,7 @@ CLASS net/minecraft/class_3537 net/minecraft/util/math/noise/OctavePerlinNoiseSa
FIELD field_36632 maxValue D
METHOD <init> (Lnet/minecraft/class_5819;Lcom/mojang/datafixers/util/Pair;Z)V
ARG 1 random
ARG 2 firstOctaveAndAmplitudes
ARG 3 xoroshiro
METHOD method_15416 sample (DDD)D
ARG 1 x
@ -44,10 +45,17 @@ CLASS net/minecraft/class_3537 net/minecraft/util/math/noise/OctavePerlinNoiseSa
ARG 2 amplitudes
METHOD method_39127 create (Lnet/minecraft/class_5819;Ljava/util/List;)Lnet/minecraft/class_3537;
ARG 0 random
ARG 1 octaves
METHOD method_39128 create (Lnet/minecraft/class_5819;Ljava/util/stream/IntStream;)Lnet/minecraft/class_3537;
ARG 0 random
ARG 1 octaves
METHOD method_39130 addDebugInfo (Ljava/lang/StringBuilder;)V
ARG 1 info
METHOD method_39131 (Ljava/lang/Double;)Z
ARG 0 amplitude
METHOD method_39187 createLegacy (Lnet/minecraft/class_5819;Ljava/util/stream/IntStream;)Lnet/minecraft/class_3537;
ARG 0 random
ARG 1 octaves
METHOD method_40555 getMaxValue ()D
METHOD method_40557 getTotalAmplitude (D)D
ARG 1 scale

View File

@ -18,6 +18,7 @@ CLASS net/minecraft/class_3695 net/minecraft/util/profiler/Profiler
COMMENT wise expensive methods.
ARG 1 marker
COMMENT a unique marker
ARG 2 num
METHOD method_24271 visit (Ljava/util/function/Supplier;I)V
COMMENT Increment the visit count for a marker.
COMMENT
@ -28,6 +29,7 @@ CLASS net/minecraft/class_3695 net/minecraft/util/profiler/Profiler
COMMENT supplier won't be called if the profiler is disabled.
ARG 1 markerGetter
COMMENT the getter for a unique marker
ARG 2 num
METHOD method_24338 union (Lnet/minecraft/class_3695;Lnet/minecraft/class_3695;)Lnet/minecraft/class_3695;
ARG 0 a
ARG 1 b

View File

@ -8,6 +8,10 @@ CLASS net/minecraft/class_244 net/minecraft/util/shape/BitSetVoxelSet
FIELD field_1360 maxZ I
METHOD <init> (Lnet/minecraft/class_251;)V
ARG 1 other
METHOD method_1038 (Lnet/minecraft/class_247;Lnet/minecraft/class_251;IILnet/minecraft/class_251;IILnet/minecraft/class_244;II[I[ZIII)Z
ARG 12 z1
ARG 13 z2
ARG 14 zIndex
METHOD method_1039 getIndex (III)I
ARG 1 x
ARG 2 y
@ -19,7 +23,25 @@ CLASS net/minecraft/class_244 net/minecraft/util/shape/BitSetVoxelSet
ARG 3 yPoints
ARG 4 zPoints
ARG 5 function
METHOD method_1041 (Lnet/minecraft/class_255;Lnet/minecraft/class_255;Lnet/minecraft/class_247;Lnet/minecraft/class_251;Lnet/minecraft/class_251;Lnet/minecraft/class_244;[IIII)Z
ARG 7 x1
ARG 8 x2
ARG 9 xIndex
METHOD method_1042 (Lnet/minecraft/class_255;Lnet/minecraft/class_247;Lnet/minecraft/class_251;ILnet/minecraft/class_251;ILnet/minecraft/class_244;I[I[ZIII)Z
ARG 10 y1
ARG 11 y2
ARG 12 yIndex
METHOD method_1059 isColumnFull (IIII)Z
ARG 1 z1
ARG 2 z2
ARG 3 x
ARG 4 y
METHOD method_31938 isXzSquareFull (IIIII)Z
ARG 1 x1
ARG 2 x2
ARG 3 z1
ARG 4 z2
ARG 5 y
METHOD method_31939 create (IIIIIIIII)Lnet/minecraft/class_244;
ARG 0 sizeX
ARG 1 sizeY
@ -34,3 +56,13 @@ CLASS net/minecraft/class_244 net/minecraft/util/shape/BitSetVoxelSet
ARG 1 x
ARG 2 y
ARG 3 z
ARG 4 updateBounds
METHOD method_31941 forEachBox (Lnet/minecraft/class_251;Lnet/minecraft/class_251$class_253;Z)V
ARG 0 voxelSet
ARG 1 callback
ARG 2 coalesce
METHOD method_31942 clearColumn (IIII)V
ARG 1 z1
ARG 2 z2
ARG 3 x
ARG 4 y

View File

@ -9,3 +9,8 @@ CLASS net/minecraft/class_257 net/minecraft/util/shape/DisjointPairList
METHOD getDouble (I)D
ARG 1 position
METHOD method_1067 iterateSections (Lnet/minecraft/class_255$class_256;)Z
ARG 1 predicate
METHOD method_1068 (Lnet/minecraft/class_255$class_256;III)Z
ARG 1 x
ARG 2 y
ARG 3 index

View File

@ -2,6 +2,7 @@ CLASS net/minecraft/class_254 net/minecraft/util/shape/SimplePairList
FIELD field_1376 minValues [I
FIELD field_1377 valueIndices [D
FIELD field_1378 maxValues [I
FIELD field_27346 ZERO Lit/unimi/dsi/fastutil/doubles/DoubleList;
FIELD field_27347 size I
METHOD <init> (Lit/unimi/dsi/fastutil/doubles/DoubleList;Lit/unimi/dsi/fastutil/doubles/DoubleList;ZZ)V
ARG 1 first

View File

@ -24,10 +24,12 @@ CLASS net/minecraft/class_251 net/minecraft/util/shape/VoxelSet
METHOD method_1051 getSize (Lnet/minecraft/class_2350$class_2351;)I
ARG 1 axis
METHOD method_1052 forEachEdge (Lnet/minecraft/class_251$class_253;Lnet/minecraft/class_2335;Z)V
ARG 1 callback
ARG 2 direction
ARG 3 coalesce
METHOD method_1053 forEachBox (Lnet/minecraft/class_251$class_253;Z)V
ARG 1 consumer
ARG 2 largest
ARG 2 coalesce
METHOD method_1055 getMin (Lnet/minecraft/class_2350$class_2351;)I
ARG 1 axis
METHOD method_1056 isEmpty ()Z
@ -52,6 +54,8 @@ CLASS net/minecraft/class_251 net/minecraft/util/shape/VoxelSet
ARG 2 y
ARG 3 z
METHOD method_1064 forEachEdge (Lnet/minecraft/class_251$class_253;Z)V
ARG 1 callback
ARG 2 coalesce
METHOD method_35592 getStartingAxisCoord (Lnet/minecraft/class_2350$class_2351;II)I
ARG 1 axis
ARG 2 from

View File

@ -11,4 +11,5 @@ CLASS net/minecraft/class_5798 net/minecraft/util/thread/LockHelper
ARG 0 message
ARG 1 thread
METHOD method_39935 lock ()V
METHOD method_39936 formatStackTraceForThread (Ljava/lang/Thread;)Ljava/lang/String;
METHOD method_39937 unlock ()V