From 24ea1b0dcc5258ec67eff9ceb01c8ddcc9f1963d Mon Sep 17 00:00:00 2001 From: woodiertexas Date: Thu, 1 Aug 2024 12:04:08 -0700 Subject: [PATCH] some mappings for worldrenderer (#619) * some mappings for worldrenderer and one picomapping for chunkbuilder * chunkbuilder was misleading apparently * Update mappings/net/minecraft/client/render/WorldRenderer.mapping Co-authored-by: Eli Orona * Update mappings/net/minecraft/client/render/WorldRenderer.mapping Co-authored-by: Eli Orona * Apply suggestions from code review * some more mappings i guess * some more mappings i guess * Update mappings/net/minecraft/client/render/WorldRenderer.mapping Co-authored-by: Eli Orona * Update mappings/net/minecraft/util/math/MathHelper.mapping Co-authored-by: Eli Orona --------- Co-authored-by: Eli Orona --- .../client/render/WorldRenderer.mapping | 21 ++++++++++++++++--- .../client/render/chunk/ChunkBuilder.mapping | 2 ++ .../minecraft/util/math/MathHelper.mapping | 1 + 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 mappings/net/minecraft/client/render/chunk/ChunkBuilder.mapping diff --git a/mappings/net/minecraft/client/render/WorldRenderer.mapping b/mappings/net/minecraft/client/render/WorldRenderer.mapping index a4716c63ea..4bbbb251e5 100644 --- a/mappings/net/minecraft/client/render/WorldRenderer.mapping +++ b/mappings/net/minecraft/client/render/WorldRenderer.mapping @@ -1,5 +1,6 @@ CLASS net/minecraft/unmapped/C_sfkkabhx net/minecraft/client/render/WorldRenderer FIELD f_agpxpcxm SUN Lnet/minecraft/unmapped/C_ncpywfca; + FIELD f_cboyeijz cameraChunkZ I FIELD f_cdatnkps END_SKY Lnet/minecraft/unmapped/C_ncpywfca; FIELD f_cnqiydim transparencyShader Lnet/minecraft/unmapped/C_pdhhdxwe; FIELD f_crrssrby lightSkyBuffer Lnet/minecraft/unmapped/C_lhjdxjis; @@ -14,6 +15,7 @@ CLASS net/minecraft/unmapped/C_sfkkabhx net/minecraft/client/render/WorldRendere FIELD f_gcyanlsp lastCameraY D FIELD f_gepidnwk blockEntityCount I FIELD f_gnmkbmxx lastCameraZ D + FIELD f_gqcuibba chunkBuilder Lnet/minecraft/unmapped/C_sjynkhfr; FIELD f_hgjgxstw lastCameraX D FIELD f_ivihlszs SNOW Lnet/minecraft/unmapped/C_ncpywfca; FIELD f_izxsabgg MOON_PHASES Lnet/minecraft/unmapped/C_ncpywfca; @@ -30,6 +32,7 @@ CLASS net/minecraft/unmapped/C_sfkkabhx net/minecraft/client/render/WorldRendere FIELD f_ntktcmew rainSizeX [F FIELD f_ntzttglo TRANSPARENT_SORT_AMOUNT I FIELD f_ofkpyvlk DIRECTIONS [Lnet/minecraft/unmapped/C_xpuuihxf; + FIELD f_oppequxe currentSounds Ljava/util/Map; FIELD f_ouqnhuws starsBuffer Lnet/minecraft/unmapped/C_lhjdxjis; FIELD f_pgcyttka entityFramebuffer Lnet/minecraft/unmapped/C_xxwgvelc; FIELD f_psrqwipd lastCloudsBlockZ I @@ -54,6 +57,8 @@ CLASS net/minecraft/unmapped/C_sfkkabhx net/minecraft/client/render/WorldRendere FIELD f_yievaftc RAIN Lnet/minecraft/unmapped/C_ncpywfca; FIELD f_yikkuozy viewDistance I FIELD f_ypfzydqz translucentFramebuffer Lnet/minecraft/unmapped/C_xxwgvelc; + FIELD f_yvsvzxdd cameraChunkY I + FIELD f_yzkmvnyb cameraChunkX I FIELD f_yznrgjts SKY_RADIUS F FIELD f_yzwscawv FORCEFIELD Lnet/minecraft/unmapped/C_ncpywfca; FIELD f_zdbvvrzp cloudsBuffer Lnet/minecraft/unmapped/C_lhjdxjis; @@ -239,11 +244,14 @@ CLASS net/minecraft/unmapped/C_sfkkabhx net/minecraft/client/render/WorldRendere METHOD m_kgpnuhyu getEntityFramebuffer ()Lnet/minecraft/unmapped/C_xxwgvelc; METHOD m_khytiwdn setupFrustum (Lnet/minecraft/unmapped/C_vgpupfxx;Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;)V ARG 1 pos - ARG 2 projectionMatrix + ARG 2 modelViewMatrix + ARG 3 projectionMatrix METHOD m_kkvlftbz addVertexFromFrustum (Lnet/minecraft/unmapped/C_igthdzux;Lorg/joml/Matrix4f;I)V ARG 1 consumer ARG 2 matrix ARG 3 frustumIndex + METHOD m_kvtxvfgf createParticles (ILnet/minecraft/unmapped/C_hynzadkk;Lnet/minecraft/unmapped/C_rlomrsco;Lnet/minecraft/unmapped/C_lwmufxcy;)V + ARG 4 particle METHOD m_lmslduiw addParticle (Lnet/minecraft/unmapped/C_nqucohct;ZZDDDDDD)V ARG 1 parameters ARG 2 shouldAlwaysSpawn @@ -269,11 +277,14 @@ CLASS net/minecraft/unmapped/C_sfkkabhx net/minecraft/client/render/WorldRendere ARG 3 camera ARG 4 gameRenderer ARG 5 lightmapTextureManager - ARG 6 projectionMatrix + ARG 6 modelViewMatrix + ARG 7 projectionMatrix METHOD m_ntxphbrg getLightmapCoordinates (Lnet/minecraft/unmapped/C_xjeuupup;Lnet/minecraft/unmapped/C_txtbiemp;Lnet/minecraft/unmapped/C_hynzadkk;)I ARG 0 world ARG 1 state ARG 2 pos + METHOD m_obdmlaer (Lnet/minecraft/unmapped/C_igrgeffe$C_insrqxjm;Lnet/minecraft/unmapped/C_igthdzux;Lnet/minecraft/unmapped/C_tizlwnnv;)Lnet/minecraft/unmapped/C_igthdzux; + ARG 2 renderLayer METHOD m_ognnlhul addChainedFilledBoxVertices (Lnet/minecraft/unmapped/C_cnszsxvd;Lnet/minecraft/unmapped/C_igthdzux;DDDDDDFFFF)V ARG 0 matrices ARG 1 vertexConsumer @@ -295,6 +306,7 @@ CLASS net/minecraft/unmapped/C_sfkkabhx net/minecraft/client/render/WorldRendere ARG 5 maxY ARG 6 maxZ METHOD m_owgocfxp createSkyBuffer (Lnet/minecraft/unmapped/C_hiiunyvh;F)Lnet/minecraft/unmapped/C_fpcijbbg; + ARG 0 tessellator ARG 1 y METHOD m_qgbrxqob setBlockBreakingInfo (ILnet/minecraft/unmapped/C_hynzadkk;I)V ARG 1 entityId @@ -304,7 +316,8 @@ CLASS net/minecraft/unmapped/C_sfkkabhx net/minecraft/client/render/WorldRendere METHOD m_qwohxtzw renderWorldBorder (Lnet/minecraft/unmapped/C_dcmtgrvm;)V ARG 1 camera METHOD m_qwqxlbnd renderSky (Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;FLnet/minecraft/unmapped/C_dcmtgrvm;ZLjava/lang/Runnable;)V - ARG 1 projectionMatrix + ARG 1 modelViewMatrix + ARG 2 projectionMatrix ARG 3 tickDelta ARG 4 preStep ARG 5 skipRendering @@ -319,6 +332,7 @@ CLASS net/minecraft/unmapped/C_sfkkabhx net/minecraft/client/render/WorldRendere ARG 9 matrices ARG 10 vertexConsumers METHOD m_rlcfnbww renderStars (Lnet/minecraft/unmapped/C_hiiunyvh;)Lnet/minecraft/unmapped/C_fpcijbbg; + ARG 1 tessellator METHOD m_roxvmdfn getViewDistance ()D METHOD m_rwjohyib scheduleBlockRerenderIfNeeded (Lnet/minecraft/unmapped/C_hynzadkk;Lnet/minecraft/unmapped/C_txtbiemp;Lnet/minecraft/unmapped/C_txtbiemp;)V ARG 1 pos @@ -405,6 +419,7 @@ CLASS net/minecraft/unmapped/C_sfkkabhx net/minecraft/client/render/WorldRendere ARG 4 y ARG 6 z ARG 8 color + METHOD m_znnjtopn getChunkBuilderDebugString ()Ljava/lang/String; METHOD m_zvzvgwmw captureFrustum (Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;DDDLnet/minecraft/unmapped/C_jwzjqevg;)V ARG 1 positionMatrix ARG 2 projectionMatrix diff --git a/mappings/net/minecraft/client/render/chunk/ChunkBuilder.mapping b/mappings/net/minecraft/client/render/chunk/ChunkBuilder.mapping new file mode 100644 index 0000000000..f09d129d19 --- /dev/null +++ b/mappings/net/minecraft/client/render/chunk/ChunkBuilder.mapping @@ -0,0 +1,2 @@ +CLASS net/minecraft/unmapped/C_sjynkhfr net/minecraft/client/render/chunk/ChunkBuilder + FIELD f_losuuhkx currentLinkedQueue Ljava/util/Queue; diff --git a/mappings/net/minecraft/util/math/MathHelper.mapping b/mappings/net/minecraft/util/math/MathHelper.mapping index 34fb4eef83..ec4f047b9b 100644 --- a/mappings/net/minecraft/util/math/MathHelper.mapping +++ b/mappings/net/minecraft/util/math/MathHelper.mapping @@ -274,6 +274,7 @@ CLASS net/minecraft/unmapped/C_zpccxxiz net/minecraft/util/math/MathHelper METHOD m_rzxxkxfg lengthSquared (DD)D ARG 0 a ARG 2 b + METHOD m_saszmoqp lengthSquared (FFF)F METHOD m_shkxmddf ([F)V ARG 0 sineTable METHOD m_snsjabxg abs (I)I