yarn/mappings/net/minecraft/client/render/WorldRenderer.mapping

460 lines
16 KiB
Plaintext
Raw Normal View History

2019-06-28 17:55:20 -04:00
CLASS net/minecraft/class_761 net/minecraft/client/render/WorldRenderer
FIELD field_20793 rainSoundCounter I
FIELD field_20794 NORMAL_LINE_DX [F
COMMENT Given {@code -16 <= z < 16} and {@code -16 <= x < 16}, let {@code i = 32 * (z + 16) + (x + 16)}.
COMMENT Then {@code NORMAL_LINE_DX[i]} and {@code NORMAL_LINE_DZ[i]} describe the
COMMENT unit vector perpendicular to {@code (x, z)}.
COMMENT
COMMENT These lookup tables are used for rendering rain and snow.
FIELD field_20795 NORMAL_LINE_DZ [F
FIELD field_20797 RAIN Lnet/minecraft/class_2960;
FIELD field_20798 SNOW Lnet/minecraft/class_2960;
FIELD field_20950 blockBreakingProgressions Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
FIELD field_20951 bufferBuilders Lnet/minecraft/class_4599;
FIELD field_21799 chunkUpdateSmoother Lnet/minecraft/class_4740;
Map transparency shader fields and methods (#1412) * Entity#isAlive(0) -> isValid * Framebuffer#method_29329(1) -> copyFrom * GlStateManager#method_29330(0) -> supportsGl30 * GlStateManager#method_29332(10) -> blitFramebuffer * GlStateManager#method_29333(0) -> getFramebufferAttachmentParameter * GlStateManager#method_29334(0) -> getActiveBoundTexture * GlStateManager#method_29331(8) -> copyTexSubImage2D * GlStateManager#getFramebufferAttachmentParameter(0) -> getFramebufferDepthAttachment * Framebuffer#copyFrom(1) -> copyDepthFrom * WorldRenderer%field_25275 -> entityFramebuffer * WorldRenderer%field_25276 -> particleFramebuffer * WorldRenderer%field_25274 -> translucentFramebuffer * RenderPhase%field_25281 -> PARTICLES_TARGET * RenderPhase%field_25280 -> TRANSLUCENT_TARGET * RenderPhase%field_25282 -> WEATHER_TARGET * RenderPhase%field_25283 -> CLOUDS_TARGET * RenderPhase%field_25284 -> ITEM_TRANSPARENCY * RenderPhase$DepthTest%field_22242 -> depthFunction * +133 doc in RenderPhase$DepthTest%depthFunction * WorldRenderer#method_29362(0) -> getParticlesFramebuffer * WorldRenderer%particleFramebuffer -> particlesFramebuffer * WorldRenderer%field_25278 -> cloudsFramebuffer * WorldRenderer%field_25277 -> weatherFramebuffer * WorldRenderer%field_25279 -> transparencyShader * WorldRenderer#method_29365(0) -> loadTransparencyShader * Lowercase 2d Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Revert "Entity#isAlive(0) -> isValid" This reverts commit 0199e61e6803e769aefd20f6b8cd31ba7a44e085. * Remove whitespace Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-05-31 13:21:17 -04:00
FIELD field_25274 translucentFramebuffer Lnet/minecraft/class_276;
FIELD field_25275 entityFramebuffer Lnet/minecraft/class_276;
FIELD field_25276 particlesFramebuffer Lnet/minecraft/class_276;
FIELD field_25277 weatherFramebuffer Lnet/minecraft/class_276;
FIELD field_25278 cloudsFramebuffer Lnet/minecraft/class_276;
FIELD field_25279 transparencyPostProcessor Lnet/minecraft/class_279;
FIELD field_27740 frustum Lnet/minecraft/class_4604;
FIELD field_27741 blockEntityRenderDispatcher Lnet/minecraft/class_824;
FIELD field_4055 noCullingBlockEntities Ljava/util/Set;
FIELD field_4056 capturedFrustum Lnet/minecraft/class_4604;
FIELD field_4058 blockBreakingInfos Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
FIELD field_4059 entityOutlinePostProcessor Lnet/minecraft/class_279;
2022-01-19 12:26:32 -05:00
FIELD field_4060 LOGGER Lorg/slf4j/Logger;
FIELD field_4061 END_SKY Lnet/minecraft/class_2960;
FIELD field_4062 viewDistance I
2019-06-28 17:55:20 -04:00
FIELD field_4064 lastCameraYaw D
2022-10-26 10:05:20 -04:00
FIELD field_4065 capturedFrustumOrientation [Lorg/joml/Vector4f;
2019-06-28 17:55:20 -04:00
FIELD field_4069 lastCameraX D
FIELD field_4071 FORCEFIELD Lnet/minecraft/class_2960;
FIELD field_4072 lastCloudsColor Lnet/minecraft/class_243;
2019-06-28 17:55:20 -04:00
FIELD field_4073 ticks I
FIELD field_4080 lastCloudRenderMode Lnet/minecraft/class_4063;
2019-06-28 17:55:20 -04:00
FIELD field_4081 lastCameraY D
FIELD field_4082 lastCloudsBlockX I
2019-06-28 17:55:20 -04:00
FIELD field_4083 lastTranslucentSortX D
FIELD field_4084 cameraChunkX I
FIELD field_4085 world Lnet/minecraft/class_638;
FIELD field_4087 lightSkyBuffer Lnet/minecraft/class_291;
2019-06-28 17:55:20 -04:00
FIELD field_4088 client Lnet/minecraft/class_310;
FIELD field_4089 regularEntityCount I
FIELD field_4090 shouldCaptureFrustum Z
2022-10-26 10:05:20 -04:00
FIELD field_4091 capturedFrustumPosition Lorg/joml/Vector3d;
2019-06-28 17:55:20 -04:00
FIELD field_4094 cloudsBuffer Lnet/minecraft/class_291;
FIELD field_4095 DIRECTIONS [Lnet/minecraft/class_2350;
FIELD field_4096 lastCameraZ D
FIELD field_4097 lastCloudsBlockY I
FIELD field_4098 MOON_PHASES Lnet/minecraft/class_2960;
2019-06-28 17:55:20 -04:00
FIELD field_4101 entityOutlinesFramebuffer Lnet/minecraft/class_276;
FIELD field_4102 darkSkyBuffer Lnet/minecraft/class_291;
2019-06-28 17:55:20 -04:00
FIELD field_4103 lastTranslucentSortY D
FIELD field_4105 cameraChunkY I
FIELD field_4107 cloudsDirty Z
FIELD field_4108 CLOUDS Lnet/minecraft/class_2960;
2019-06-28 17:55:20 -04:00
FIELD field_4109 entityRenderDispatcher Lnet/minecraft/class_898;
FIELD field_4110 blockEntityCount I
FIELD field_4111 SUN Lnet/minecraft/class_2960;
FIELD field_4112 chunks Lnet/minecraft/class_769;
2019-06-28 17:55:20 -04:00
FIELD field_4113 starsBuffer Lnet/minecraft/class_291;
FIELD field_4115 lastCameraPitch D
FIELD field_4116 lastCloudsBlockZ I
2019-06-28 17:55:20 -04:00
FIELD field_4118 lastTranslucentSortZ D
FIELD field_4119 playingSongs Ljava/util/Map;
FIELD field_4121 cameraChunkZ I
FIELD field_45614 chunkBuilder Lnet/minecraft/class_846;
FIELD field_45615 chunkRenderingDataPreparer Lnet/minecraft/class_8679;
FIELD field_45616 builtChunks Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
METHOD <init> (Lnet/minecraft/class_310;Lnet/minecraft/class_898;Lnet/minecraft/class_824;Lnet/minecraft/class_4599;)V
ARG 1 client
ARG 2 entityRenderDispatcher
ARG 3 blockEntityRenderDispatcher
ARG 4 bufferBuilders
2019-06-28 17:55:20 -04:00
METHOD method_16037 scheduleSectionRender (Lnet/minecraft/class_2338;Z)V
ARG 1 pos
ARG 2 important
2019-06-28 17:55:20 -04:00
METHOD method_18145 scheduleBlockRenders (III)V
2019-03-31 20:45:27 -04:00
ARG 1 x
ARG 2 y
ARG 3 z
2019-06-28 17:55:20 -04:00
METHOD method_18146 scheduleBlockRenders (IIIIII)V
2019-03-31 20:45:27 -04:00
ARG 1 minX
ARG 2 minY
ARG 3 minZ
ARG 4 maxX
ARG 5 maxY
ARG 6 maxZ
Misc. Issue Resolution (#1401) * PlayerAbilitiesS2CPacket.fovModifier -> walkSpeed (#1392) * GameJoinS2CPacket seed -> sha256Seed (#1360) * checkBlockRerender -> scheduleBlockRerenderIfNecessary (#1332) * StatusEffectType -> StatusEffectCategory (#1036) StatusEffect -> StatusEffectType StatusEfectInstance -> StatusEffect (and related names) * SettingsScreen -> OptionsScreen (#787) AccessibilityScreen -> AccessibilityOptionsScreen Moved OptionsScreen to options package with all the other options screens * Finishes making maximum/minimum -> max/min (#672) (the ones in TreeDecoratorConfig as they have no postfix) DefaultBiomeFeatures moved to world/gen/feature from world/biome (#667) * fix missing file * Revert "StatusEffectType -> StatusEffectCategory (#1036)" This reverts commit 07f887a3d2332539ce07b0d29bcb84c6f5e6bf5b. * fix capitalization Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/client/render/WorldRenderer.mapping Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk> * Update mappings/net/minecraft/client/render/WorldRenderer.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/client/render/WorldRenderer.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/world/World.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>
2020-05-30 14:31:17 -04:00
METHOD method_21596 scheduleBlockRerenderIfNeeded (Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)V
ARG 1 pos
ARG 2 old
ARG 3 updated
2024-01-31 12:12:25 -05:00
METHOD method_22710 render (FJZLnet/minecraft/class_4184;Lnet/minecraft/class_757;Lnet/minecraft/class_765;Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;)V
ARG 1 tickDelta
ARG 2 limitTime
ARG 4 renderBlockOutline
ARG 5 camera
ARG 6 gameRenderer
ARG 7 lightmapTextureManager
2019-10-09 13:17:26 -04:00
METHOD method_22712 drawBlockOutline (Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;Lnet/minecraft/class_1297;DDDLnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
2021-01-23 16:21:31 -05:00
ARG 1 matrices
ARG 2 vertexConsumer
ARG 3 entity
ARG 4 cameraX
ARG 6 cameraY
ARG 8 cameraZ
ARG 10 pos
ARG 11 state
METHOD method_22713 tickRainSplashing (Lnet/minecraft/class_4184;)V
ARG 1 camera
METHOD method_22714 renderWeather (Lnet/minecraft/class_765;FDDD)V
ARG 1 manager
ARG 2 tickDelta
ARG 3 cameraX
ARG 5 cameraY
ARG 7 cameraZ
METHOD method_22977 renderEntity (Lnet/minecraft/class_1297;DDDFLnet/minecraft/class_4587;Lnet/minecraft/class_4597;)V
ARG 1 entity
ARG 2 cameraX
ARG 4 cameraY
ARG 6 cameraZ
ARG 8 tickDelta
Renderer mappings (#988) * part.render(matrix, vertices, light, overlay, red, green, blue, alpha) * Fixed bad names * Determined by the call to part.render(matrix, vertices, light, overlay) which delegates to part.render(matrix, vertices, light, overlay, 1, 1, 1, 1) * Now we extrapolate to everything that calls part.render(matrix, vertices, light, overlay) Meanhile VertexConsumerProvider is * Now we extrapolate to everything that cals pars.render(matrix, vertices, light, overlay, red, green, blue, alpha) * This is not a render method! It sets the yaw and pitch on the skull * Now we extrapolate to things that call mode.render(matrix, vertices, light, overlay, red, green, blue, alpha) Not much to change there though * These are known from EntityRenderDispatcher * render calls renderLabelIfPresent * Now we're looking at things which call EntityRenderDispatcher.render(entity, x, y, z, yaw, matrix, provider, light) * In ClientPlayNetworkHandler.onItemPickupAnimation the second entity is gotten from packet.getCollectorEntityId and defaulted to the player if null. The first entity is an item entity or an experience orb entity * Going back to EntityRenderDispatcher, we can see the code for rendering shadows was moved here from the renderer itself if (this.gameOptions.entityShadows && this.renderShadows && entityRenderer14.shadowRadius > 0.0f && !entity.isInvisible()) { double double22 = this.getSquaredDistanceToCamera(entity.getX(), entity.getY(), entity.getZ()); float float24 = (float)((1.0 - double22 / 256.0) * entityRenderer14.field_4672); if (float24 > 0.0f) { renderShadow(matrix, provider, entity, float24, tickDelta, this.world, entityRenderer14.shadowRadius); } } * The last parameter is shadow radius, but to be sure we check, nd indeed it is reduced when the rendered entity is a baby private static void renderShadow(MatrixStack matrix, VertexConsumerProvider provider, Entity entity, float float4, float tickDelta, WorldView world, float radius) { float float8 = radius; if (entity instanceof MobEntity) { if (((MobEntity)entity).isBaby()) { float8 *= 0.5f; } } * float4 was a myster, but it's just passed down as-is and used to determine the opacity of the shadow! float float16 = (float)((opacity - (y - pos.getY()) / 2.0) * 0.5 * world.getBrightness(pos)); if (float16 >= 0.0f) { * Forgot this one * This is all low-hanging fruit. * EntityRenderDispatcher.shouldRender(entity, frustrum, x, y, z) -> EntityRenderer.isVisible(entity, frustrum, x, y, z) -> Entity.shouldRenderFrom(x, y, z) @Environment(EnvType.CLIENT) public boolean shouldRenderFrom(double x, double y, double z) { double double8 = this.getX() - x; double double10 = this.getY() - y; double double12 = this.getZ() - z; double double14 = double8 * double8 + double10 * double10 + double12 * double12; return this.shouldRenderAtDistance(double14); } * More things we know * This is set by calling entity.getLeaningPitch * This is only overriden by CreeperEntityRenderer and returns a float computed from the fuse time. The value is then passed to getOverlay where it's passed to OverlayTexture.getU(animationCounter). This causes the creeper to flash white when active. The same method, interestingly, will use the V to create the hurt/death overlay OverlayTexture.packUv( OverlayTexture.getU(animationCounter), OverlayTexture.getV(entity.hurtTime > 0 || entity.deathTime > 0) ) * The final patches * xrayEnabled -> isGlowing * Commit suggestions/name changes I missed during rebase Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com> * Fix typos * yaw -> tickDelta Co-Authored-By: liach <7806504+liach@users.noreply.github.com> * provider -> vertexConsumers Co-Authored-By: liach <7806504+liach@users.noreply.github.com> * matrix -> matrices Co-Authored-By: liach <7806504+liach@users.noreply.github.com> * Fixed some encorrect names * entry -> matrices * textureU/V -> u/v * isBanner -> isBannerBlock * frustrum -> frustum Co-Authored-By: Gegy <gegy1000@gmail.com> * Fix broken/changed mappings for 20w10a * grammar Co-Authored-By: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/client/particle/ItemPickupParticle.mapping Co-Authored-By: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Gegy <gegy1000@gmail.com>
2020-03-27 07:06:32 -04:00
ARG 9 matrices
ARG 10 vertexConsumers
METHOD method_22979 checkEmpty (Lnet/minecraft/class_4587;)V
Renderer mappings (#988) * part.render(matrix, vertices, light, overlay, red, green, blue, alpha) * Fixed bad names * Determined by the call to part.render(matrix, vertices, light, overlay) which delegates to part.render(matrix, vertices, light, overlay, 1, 1, 1, 1) * Now we extrapolate to everything that calls part.render(matrix, vertices, light, overlay) Meanhile VertexConsumerProvider is * Now we extrapolate to everything that cals pars.render(matrix, vertices, light, overlay, red, green, blue, alpha) * This is not a render method! It sets the yaw and pitch on the skull * Now we extrapolate to things that call mode.render(matrix, vertices, light, overlay, red, green, blue, alpha) Not much to change there though * These are known from EntityRenderDispatcher * render calls renderLabelIfPresent * Now we're looking at things which call EntityRenderDispatcher.render(entity, x, y, z, yaw, matrix, provider, light) * In ClientPlayNetworkHandler.onItemPickupAnimation the second entity is gotten from packet.getCollectorEntityId and defaulted to the player if null. The first entity is an item entity or an experience orb entity * Going back to EntityRenderDispatcher, we can see the code for rendering shadows was moved here from the renderer itself if (this.gameOptions.entityShadows && this.renderShadows && entityRenderer14.shadowRadius > 0.0f && !entity.isInvisible()) { double double22 = this.getSquaredDistanceToCamera(entity.getX(), entity.getY(), entity.getZ()); float float24 = (float)((1.0 - double22 / 256.0) * entityRenderer14.field_4672); if (float24 > 0.0f) { renderShadow(matrix, provider, entity, float24, tickDelta, this.world, entityRenderer14.shadowRadius); } } * The last parameter is shadow radius, but to be sure we check, nd indeed it is reduced when the rendered entity is a baby private static void renderShadow(MatrixStack matrix, VertexConsumerProvider provider, Entity entity, float float4, float tickDelta, WorldView world, float radius) { float float8 = radius; if (entity instanceof MobEntity) { if (((MobEntity)entity).isBaby()) { float8 *= 0.5f; } } * float4 was a myster, but it's just passed down as-is and used to determine the opacity of the shadow! float float16 = (float)((opacity - (y - pos.getY()) / 2.0) * 0.5 * world.getBrightness(pos)); if (float16 >= 0.0f) { * Forgot this one * This is all low-hanging fruit. * EntityRenderDispatcher.shouldRender(entity, frustrum, x, y, z) -> EntityRenderer.isVisible(entity, frustrum, x, y, z) -> Entity.shouldRenderFrom(x, y, z) @Environment(EnvType.CLIENT) public boolean shouldRenderFrom(double x, double y, double z) { double double8 = this.getX() - x; double double10 = this.getY() - y; double double12 = this.getZ() - z; double double14 = double8 * double8 + double10 * double10 + double12 * double12; return this.shouldRenderAtDistance(double14); } * More things we know * This is set by calling entity.getLeaningPitch * This is only overriden by CreeperEntityRenderer and returns a float computed from the fuse time. The value is then passed to getOverlay where it's passed to OverlayTexture.getU(animationCounter). This causes the creeper to flash white when active. The same method, interestingly, will use the V to create the hurt/death overlay OverlayTexture.packUv( OverlayTexture.getU(animationCounter), OverlayTexture.getV(entity.hurtTime > 0 || entity.deathTime > 0) ) * The final patches * xrayEnabled -> isGlowing * Commit suggestions/name changes I missed during rebase Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com> * Fix typos * yaw -> tickDelta Co-Authored-By: liach <7806504+liach@users.noreply.github.com> * provider -> vertexConsumers Co-Authored-By: liach <7806504+liach@users.noreply.github.com> * matrix -> matrices Co-Authored-By: liach <7806504+liach@users.noreply.github.com> * Fixed some encorrect names * entry -> matrices * textureU/V -> u/v * isBanner -> isBannerBlock * frustrum -> frustum Co-Authored-By: Gegy <gegy1000@gmail.com> * Fix broken/changed mappings for 20w10a * grammar Co-Authored-By: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/client/particle/ItemPickupParticle.mapping Co-Authored-By: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Gegy <gegy1000@gmail.com>
2020-03-27 07:06:32 -04:00
ARG 1 matrices
METHOD method_22980 drawBox (Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;DDDDDDFFFF)V
2020-06-11 06:35:50 -04:00
COMMENT Draws a box spanning from [x1,y1,z1] to [x2,y2,z2].
COMMENT
COMMENT <p>Note the coordinates the box spans are relative to current translation of the matrices.
ARG 0 matrices
ARG 1 vertexConsumer
ARG 2 x1
ARG 4 y1
ARG 6 z1
ARG 8 x2
ARG 10 y2
ARG 12 z2
ARG 14 red
ARG 15 green
ARG 16 blue
ARG 17 alpha
METHOD method_22981 drawBox (Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;DDDDDDFFFFFFF)V
2020-06-11 06:35:50 -04:00
COMMENT Draws a box spanning from [x1,y1,z1] to [x2,y2,z2].
COMMENT The 3 axes centered at [x1,y1,z1] may be colored differently using xAxisRed, yAxisGreen, and zAxisBlue.
COMMENT
COMMENT <p>Note the coordinates the box spans are relative to current translation of the matrices.
Renderer mappings (#988) * part.render(matrix, vertices, light, overlay, red, green, blue, alpha) * Fixed bad names * Determined by the call to part.render(matrix, vertices, light, overlay) which delegates to part.render(matrix, vertices, light, overlay, 1, 1, 1, 1) * Now we extrapolate to everything that calls part.render(matrix, vertices, light, overlay) Meanhile VertexConsumerProvider is * Now we extrapolate to everything that cals pars.render(matrix, vertices, light, overlay, red, green, blue, alpha) * This is not a render method! It sets the yaw and pitch on the skull * Now we extrapolate to things that call mode.render(matrix, vertices, light, overlay, red, green, blue, alpha) Not much to change there though * These are known from EntityRenderDispatcher * render calls renderLabelIfPresent * Now we're looking at things which call EntityRenderDispatcher.render(entity, x, y, z, yaw, matrix, provider, light) * In ClientPlayNetworkHandler.onItemPickupAnimation the second entity is gotten from packet.getCollectorEntityId and defaulted to the player if null. The first entity is an item entity or an experience orb entity * Going back to EntityRenderDispatcher, we can see the code for rendering shadows was moved here from the renderer itself if (this.gameOptions.entityShadows && this.renderShadows && entityRenderer14.shadowRadius > 0.0f && !entity.isInvisible()) { double double22 = this.getSquaredDistanceToCamera(entity.getX(), entity.getY(), entity.getZ()); float float24 = (float)((1.0 - double22 / 256.0) * entityRenderer14.field_4672); if (float24 > 0.0f) { renderShadow(matrix, provider, entity, float24, tickDelta, this.world, entityRenderer14.shadowRadius); } } * The last parameter is shadow radius, but to be sure we check, nd indeed it is reduced when the rendered entity is a baby private static void renderShadow(MatrixStack matrix, VertexConsumerProvider provider, Entity entity, float float4, float tickDelta, WorldView world, float radius) { float float8 = radius; if (entity instanceof MobEntity) { if (((MobEntity)entity).isBaby()) { float8 *= 0.5f; } } * float4 was a myster, but it's just passed down as-is and used to determine the opacity of the shadow! float float16 = (float)((opacity - (y - pos.getY()) / 2.0) * 0.5 * world.getBrightness(pos)); if (float16 >= 0.0f) { * Forgot this one * This is all low-hanging fruit. * EntityRenderDispatcher.shouldRender(entity, frustrum, x, y, z) -> EntityRenderer.isVisible(entity, frustrum, x, y, z) -> Entity.shouldRenderFrom(x, y, z) @Environment(EnvType.CLIENT) public boolean shouldRenderFrom(double x, double y, double z) { double double8 = this.getX() - x; double double10 = this.getY() - y; double double12 = this.getZ() - z; double double14 = double8 * double8 + double10 * double10 + double12 * double12; return this.shouldRenderAtDistance(double14); } * More things we know * This is set by calling entity.getLeaningPitch * This is only overriden by CreeperEntityRenderer and returns a float computed from the fuse time. The value is then passed to getOverlay where it's passed to OverlayTexture.getU(animationCounter). This causes the creeper to flash white when active. The same method, interestingly, will use the V to create the hurt/death overlay OverlayTexture.packUv( OverlayTexture.getU(animationCounter), OverlayTexture.getV(entity.hurtTime > 0 || entity.deathTime > 0) ) * The final patches * xrayEnabled -> isGlowing * Commit suggestions/name changes I missed during rebase Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com> * Fix typos * yaw -> tickDelta Co-Authored-By: liach <7806504+liach@users.noreply.github.com> * provider -> vertexConsumers Co-Authored-By: liach <7806504+liach@users.noreply.github.com> * matrix -> matrices Co-Authored-By: liach <7806504+liach@users.noreply.github.com> * Fixed some encorrect names * entry -> matrices * textureU/V -> u/v * isBanner -> isBannerBlock * frustrum -> frustum Co-Authored-By: Gegy <gegy1000@gmail.com> * Fix broken/changed mappings for 20w10a * grammar Co-Authored-By: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/client/particle/ItemPickupParticle.mapping Co-Authored-By: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Gegy <gegy1000@gmail.com>
2020-03-27 07:06:32 -04:00
ARG 0 matrices
ARG 1 vertexConsumer
ARG 2 x1
ARG 4 y1
ARG 6 z1
ARG 8 x2
ARG 10 y2
ARG 12 z2
ARG 14 red
2020-06-11 06:35:50 -04:00
ARG 15 green
ARG 16 blue
ARG 17 alpha
2020-06-11 06:35:50 -04:00
ARG 18 xAxisRed
ARG 19 yAxisGreen
ARG 20 zAxisBlue
METHOD method_22982 drawBox (Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;Lnet/minecraft/class_238;FFFF)V
2020-06-11 06:35:50 -04:00
COMMENT Draws a box.
COMMENT
COMMENT <p>Note the coordinates the box spans are relative to current translation of the matrices.
ARG 0 matrices
ARG 1 vertexConsumer
ARG 2 box
ARG 3 red
ARG 4 green
ARG 5 blue
ARG 6 alpha
2023-05-03 09:29:41 -04:00
METHOD method_22983 drawShapeOutline (Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;Lnet/minecraft/class_265;DDDFFFFZ)V
ARG 0 matrices
ARG 1 vertexConsumer
ARG 2 shape
ARG 3 offsetX
ARG 5 offsetY
ARG 7 offsetZ
ARG 9 red
ARG 10 green
ARG 11 blue
ARG 12 alpha
ARG 13 colorize
METHOD method_22984 renderCapturedFrustumVertex (Lnet/minecraft/class_4588;Lorg/joml/Matrix4f;I)V
ARG 1 vertexConsumer
ARG 3 planeNum
METHOD method_22985 renderCapturedFrustumFace (Lnet/minecraft/class_4588;Lorg/joml/Matrix4f;IIIIIII)V
ARG 1 vertexConsumer
ARG 3 plane0
ARG 4 plane1
ARG 5 plane2
ARG 6 plane3
ARG 7 r
ARG 8 g
ARG 9 b
METHOD method_22986 (Lnet/minecraft/class_4597$class_4598;Lnet/minecraft/class_4588;Lnet/minecraft/class_1921;)Lnet/minecraft/class_4588;
ARG 2 renderLayer
METHOD method_22987 removeBlockBreakingInfo (Lnet/minecraft/class_3191;)V
ARG 1 info
2023-02-08 11:10:32 -05:00
METHOD method_22989 renderChunkDebugInfo (Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;Lnet/minecraft/class_4184;)V
ARG 1 matrices
ARG 2 vertexConsumers
ARG 3 camera
METHOD method_22990 getEntityOutlinesFramebuffer ()Lnet/minecraft/class_276;
METHOD method_23793 getLightmapCoordinates (Lnet/minecraft/class_1920;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)I
ARG 0 world
ARG 1 state
ARG 2 pos
METHOD method_23794 getLightmapCoordinates (Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;)I
ARG 0 world
ARG 1 pos
METHOD method_29360 getTranslucentFramebuffer ()Lnet/minecraft/class_276;
METHOD method_29361 getEntityFramebuffer ()Lnet/minecraft/class_276;
Map transparency shader fields and methods (#1412) * Entity#isAlive(0) -> isValid * Framebuffer#method_29329(1) -> copyFrom * GlStateManager#method_29330(0) -> supportsGl30 * GlStateManager#method_29332(10) -> blitFramebuffer * GlStateManager#method_29333(0) -> getFramebufferAttachmentParameter * GlStateManager#method_29334(0) -> getActiveBoundTexture * GlStateManager#method_29331(8) -> copyTexSubImage2D * GlStateManager#getFramebufferAttachmentParameter(0) -> getFramebufferDepthAttachment * Framebuffer#copyFrom(1) -> copyDepthFrom * WorldRenderer%field_25275 -> entityFramebuffer * WorldRenderer%field_25276 -> particleFramebuffer * WorldRenderer%field_25274 -> translucentFramebuffer * RenderPhase%field_25281 -> PARTICLES_TARGET * RenderPhase%field_25280 -> TRANSLUCENT_TARGET * RenderPhase%field_25282 -> WEATHER_TARGET * RenderPhase%field_25283 -> CLOUDS_TARGET * RenderPhase%field_25284 -> ITEM_TRANSPARENCY * RenderPhase$DepthTest%field_22242 -> depthFunction * +133 doc in RenderPhase$DepthTest%depthFunction * WorldRenderer#method_29362(0) -> getParticlesFramebuffer * WorldRenderer%particleFramebuffer -> particlesFramebuffer * WorldRenderer%field_25278 -> cloudsFramebuffer * WorldRenderer%field_25277 -> weatherFramebuffer * WorldRenderer%field_25279 -> transparencyShader * WorldRenderer#method_29365(0) -> loadTransparencyShader * Lowercase 2d Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Revert "Entity#isAlive(0) -> isValid" This reverts commit 0199e61e6803e769aefd20f6b8cd31ba7a44e085. * Remove whitespace Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-05-31 13:21:17 -04:00
METHOD method_29362 getParticlesFramebuffer ()Lnet/minecraft/class_276;
METHOD method_29363 getWeatherFramebuffer ()Lnet/minecraft/class_276;
METHOD method_29364 getCloudsFramebuffer ()Lnet/minecraft/class_276;
METHOD method_29365 loadTransparencyPostProcessor ()V
METHOD method_29701 resetTransparencyPostProcessor ()V
2024-01-31 12:12:25 -05:00
METHOD method_32133 setupFrustum (Lnet/minecraft/class_243;Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;)V
2022-04-27 13:09:08 -04:00
METHOD method_3239 renderClouds (Lnet/minecraft/class_287;DDDLnet/minecraft/class_243;)Lnet/minecraft/class_287$class_7433;
ARG 1 builder
ARG 2 x
ARG 4 y
ARG 6 z
2019-06-28 17:55:20 -04:00
ARG 8 color
METHOD method_3242 onResized (II)V
ARG 1 width
ARG 2 height
2019-11-07 14:37:31 -05:00
METHOD method_3243 renderWorldBorder (Lnet/minecraft/class_4184;)V
ARG 1 camera
2019-06-28 17:55:20 -04:00
METHOD method_3244 setWorld (Lnet/minecraft/class_638;)V
2021-01-23 16:21:31 -05:00
ARG 1 world
METHOD method_3245 updateNoCullingBlockEntities (Ljava/util/Collection;Ljava/util/Collection;)V
2019-06-28 17:55:20 -04:00
ARG 1 removed
ARG 2 added
METHOD method_3246 getCompletedChunkCount ()I
2019-06-28 17:55:20 -04:00
METHOD method_3247 updateEntitiesForSong (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Z)V
ARG 1 world
ARG 2 pos
ARG 3 playing
2019-09-27 12:23:24 -04:00
METHOD method_3250 renderEndSky (Lnet/minecraft/class_4587;)V
ARG 1 matrices
2024-01-31 12:12:25 -05:00
METHOD method_3251 renderLayer (Lnet/minecraft/class_1921;DDDLorg/joml/Matrix4f;Lorg/joml/Matrix4f;)V
2021-01-23 16:21:31 -05:00
ARG 1 renderLayer
ARG 2 x
ARG 4 y
ARG 6 z
ARG 9 positionMatrix
2019-06-28 17:55:20 -04:00
METHOD method_3252 tick ()V
METHOD method_3254 drawEntityOutlinesFramebuffer ()V
2022-04-27 13:09:08 -04:00
METHOD method_3255 renderStars (Lnet/minecraft/class_287;)Lnet/minecraft/class_287$class_7433;
2019-06-28 17:55:20 -04:00
ARG 1 buffer
2024-01-31 12:12:25 -05:00
METHOD method_3257 renderSky (Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;FLnet/minecraft/class_4184;ZLjava/lang/Runnable;)V
ARG 2 projectionMatrix
ARG 3 tickDelta
ARG 4 camera
ARG 5 thickFog
ARG 6 fogCallback
METHOD method_3258 renderFilledBox (Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;DDDDDDFFFF)V
ARG 0 matrices
ARG 1 vertexConsumer
ARG 2 minX
ARG 4 minY
ARG 6 minZ
ARG 8 maxX
ARG 10 maxY
ARG 12 maxZ
ARG 14 red
ARG 15 green
ARG 16 blue
ARG 17 alpha
2024-01-31 12:12:25 -05:00
METHOD method_3259 renderClouds (Lnet/minecraft/class_4587;Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;FDDD)V
ARG 1 matrices
ARG 4 tickDelta
ARG 5 cameraX
ARG 7 cameraY
ARG 9 cameraZ
METHOD method_3265 renderDarkSky ()V
2021-11-01 09:27:53 -04:00
METHOD method_3267 cleanUp ()V
2019-06-28 17:55:20 -04:00
METHOD method_3268 getRandomParticleSpawnChance (Z)Lnet/minecraft/class_4066;
ARG 1 canSpawnOnMinimal
2021-09-16 15:04:31 -04:00
METHOD method_3269 updateChunks (Lnet/minecraft/class_4184;)V
ARG 1 camera
2019-06-28 17:55:20 -04:00
METHOD method_3270 canDrawEntityOutlines ()Z
METHOD method_3272 getEntitiesDebugString ()Ljava/lang/String;
2021-09-16 15:04:31 -04:00
METHOD method_3273 setupTerrain (Lnet/minecraft/class_4184;Lnet/minecraft/class_4604;ZZ)V
2021-09-24 08:08:11 -04:00
ARG 1 camera
ARG 2 frustum
ARG 3 hasForcedFrustum
2021-09-24 08:08:11 -04:00
ARG 4 spectator
2022-10-26 10:05:20 -04:00
METHOD method_3275 captureFrustum (Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;DDDLnet/minecraft/class_4604;)V
ARG 1 positionMatrix
ARG 2 projectionMatrix
ARG 3 x
ARG 5 y
ARG 7 z
ARG 9 frustum
2019-06-28 17:55:20 -04:00
METHOD method_3276 addParticle (Lnet/minecraft/class_2394;DDDDDD)V
ARG 1 parameters
ARG 2 x
ARG 4 y
ARG 6 z
ARG 8 velocityX
ARG 10 velocityY
ARG 12 velocityZ
METHOD method_3277 renderLightSky ()V
METHOD method_3278 (Lnet/minecraft/class_4588;Lnet/minecraft/class_4587$class_4665;DDDFFFFDDDDDD)V
ARG 12 minX
ARG 14 minY
ARG 16 minZ
ARG 18 maxX
ARG 20 maxY
ARG 22 maxZ
2019-06-28 17:55:20 -04:00
METHOD method_3279 reload ()V
METHOD method_3281 isTerrainRenderComplete ()Z
METHOD method_3282 spawnParticle (Lnet/minecraft/class_2394;ZDDDDDD)Lnet/minecraft/class_703;
2019-02-10 02:49:48 -05:00
ARG 1 parameters
2019-06-28 17:55:20 -04:00
ARG 2 alwaysSpawn
2019-02-10 02:49:48 -05:00
ARG 3 x
ARG 5 y
ARG 7 z
ARG 9 velocityX
ARG 11 velocityY
ARG 13 velocityZ
2019-06-28 17:55:20 -04:00
METHOD method_3288 spawnParticle (Lnet/minecraft/class_2394;ZZDDDDDD)Lnet/minecraft/class_703;
2019-02-10 02:49:48 -05:00
ARG 1 parameters
2019-06-28 17:55:20 -04:00
ARG 2 alwaysSpawn
ARG 3 canSpawnOnMinimal
2019-02-10 02:49:48 -05:00
ARG 4 x
ARG 6 y
ARG 8 z
ARG 10 velocityX
ARG 12 velocityY
2019-06-28 17:55:20 -04:00
ARG 14 velocityZ
METHOD method_3289 getChunksDebugString ()Ljava/lang/String;
METHOD method_3291 drawCuboidShapeOutline (Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;Lnet/minecraft/class_265;DDDFFFF)V
2021-01-23 16:21:31 -05:00
ARG 0 matrices
ARG 1 vertexConsumer
ARG 2 shape
ARG 3 offsetX
ARG 5 offsetY
ARG 7 offsetZ
ARG 9 red
ARG 10 green
ARG 11 blue
ARG 12 alpha
2019-06-28 17:55:20 -04:00
METHOD method_3292 scheduleTerrainUpdate ()V
METHOD method_3293 renderStars ()V
METHOD method_3295 scheduleChunkRender (IIIZ)V
ARG 1 x
ARG 2 y
ARG 3 z
ARG 4 important
METHOD method_3296 loadEntityOutlinePostProcessor ()V
2022-04-27 13:09:08 -04:00
METHOD method_34550 renderSky (Lnet/minecraft/class_287;F)Lnet/minecraft/class_287$class_7433;
2021-11-01 09:27:53 -04:00
ARG 0 builder
METHOD method_34810 getChunkBuilder ()Lnet/minecraft/class_846;
METHOD method_34811 getChunkCount ()D
METHOD method_34812 getViewDistance ()D
2021-11-01 09:27:53 -04:00
METHOD method_35773 drawBox (Lnet/minecraft/class_4588;DDDDDDFFFF)V
COMMENT Draws a box spanning from [x1,y1,z1] to [x2,y2,z2].
ARG 0 vertexConsumer
ARG 1 x1
ARG 3 y1
ARG 5 z1
ARG 7 x2
ARG 9 y2
ARG 11 z2
ARG 13 red
ARG 14 green
ARG 15 blue
ARG 16 alpha
METHOD method_35774 reloadTransparencyPostProcessor ()V
METHOD method_35775 captureFrustum ()V
METHOD method_35776 killFrustum ()V
METHOD method_38550 addBuiltChunk (Lnet/minecraft/class_846$class_851;)V
ARG 1 chunk
2021-11-01 09:27:53 -04:00
METHOD method_38551 applyFrustum (Lnet/minecraft/class_4604;)V
ARG 1 frustum
METHOD method_40050 isRenderingReady (Lnet/minecraft/class_2338;)Z
ARG 1 pos
METHOD method_43788 hasBlindnessOrDarkness (Lnet/minecraft/class_4184;)Z
ARG 1 camera
METHOD method_49041 renderFilledBox (Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;FFFFFFFFFF)V
ARG 0 matrices
ARG 1 vertexConsumer
ARG 2 minX
ARG 3 minY
ARG 4 minZ
ARG 5 maxX
ARG 6 maxY
ARG 7 maxZ
ARG 8 red
ARG 9 green
ARG 10 blue
ARG 11 alpha
METHOD method_51778 getMaxIntensityColor (F)Lnet/minecraft/class_243;
ARG 0 hue
METHOD method_51779 shiftHue (FFFF)Lnet/minecraft/class_243;
ARG 0 red
ARG 1 green
ARG 2 blue
ARG 3 hueOffset
METHOD method_54638 shootParticles (ILnet/minecraft/class_2338;Lnet/minecraft/class_5819;Lnet/minecraft/class_2400;)V
ARG 1 direction
ARG 2 pos
ARG 3 random
ARG 4 particleType
2019-06-28 17:55:20 -04:00
METHOD method_8562 playSong (Lnet/minecraft/class_3414;Lnet/minecraft/class_2338;)V
ARG 1 song
LivingEntity mappings (#802) * field_6276 -> lastDamageSource field_6226 -> lastDamageTime * getHealthMaximum -> getMaximumHealth * method_6124 -> getPrimeAdversary * addPotionEffect -> addStatusEffect * method_6009 -> onStatusEffectUpgraded method_6020 -> onStatusEffectApplied * clearPotionEffects -> clearStatusEffects * method_6024 -> getLeaningPitch field_6243 -> leaningPitch field_6264 -> lastLeaningPitch * Mapped all the tracking fields. (These are sent by the server and incrementally applied on the client to rubber-band entities into position) * method_18802 -> getMovementSpeed field_6281 -> flyingSpeed * method_18801 -> applyClimbingSpeed * method_6093 -> knockDownwards * cannotMove -> isImmobile * method_18396 -> getArmorVisibility * isEquippedStackValid -> hasStackEquipped * setEquippedStack -> equipStack * attributeContainer -> attributes * method_6039 -> isBlocking method_6061 -> canPierceDefense * method_6040 -> consumeItem * method_6076 -> tickActiveItemStack * method_6072 -> updateLeaningPitch * method_6077 -> canEnterTrapdoor * method_16212 -> getBlockStateUnderFeet (suggestions welcome) * method_6095 -> absorbDamage * field_6271 -> knockbackVelocity (or painFactor) * field_6239 -> roll * field_6228 -> jumpingCooldown * field_6254 -> maxHurtTime * method_6129 -> onStatusEffectRemoved * field_6285 -> effectsChanged * spawnPotionParticles -> tickStatusEffects * method_6031 -> turnHead (as hinted by Mojang) field_6283 -> bodyYaw field_6220 -> prevBodyYaw * field_6255 -> lookDirection (result of turnHead) * method_6038 -> onDismounted (checks collisions and pushes the entity and boat apart) * field_6267 -> diagonalSpeed * field_6261 -> pushCooldown method_6035 -> push (As hinted by Mojang) tickPushing -> tickCramming (applies the cramming rule) * field_6232 -> scoreAmount (appears unused. Value increments a score on the player when this entity is killed - see ServerPlayerEntity.updateKilledAdvancementCriterion) * field_6253 -> lastDamageTaken (Damage amount is stored and applyDamage is called with the difference only if the new damage is higher than it was before) * field_6275 -> prevLookDirection * field_6269 -> defaultMaximumHealth (public, final, value is 20) * (unused - interpolated between 0 and 0.3 when the entity is on the ground, and always 0 when riding) field_6233 -> stepBobbingAmount field_6217 -> prevStepBobbingAmount * (unused - set to a random float when constructing) field_6244 -> randomLargeSeed field_6262 -> randomSmallSeed * Stitch did this. I don't know why. * StatusEffect.method_5555 -> onApplied * canPierceDefense -> tryUseShield * absorbDamage -> tryUseTotem * getBlockStateUnderFeet -> getBlockState * diagonalSpeed -> turningSpeed * Mapped several parameters * removeStatusEffect -> tryRemoveStatusEffect removePotionEffect -> removeStatusEffect * isPotionEffective -> canHaveStatusEffect * More parameters * tryUseShield -> blockedByShield (because "hitsShield" reads like manglish)
2019-08-22 16:25:19 -04:00
ARG 2 songPosition
2019-06-28 17:55:20 -04:00
METHOD method_8563 addParticle (Lnet/minecraft/class_2394;ZZDDDDDD)V
ARG 1 parameters
2019-06-28 17:55:20 -04:00
ARG 2 shouldAlwaysSpawn
2020-08-07 14:32:22 -04:00
ARG 3 important
2019-06-28 17:55:20 -04:00
ARG 4 x
ARG 6 y
ARG 8 z
ARG 10 velocityX
ARG 12 velocityY
ARG 14 velocityZ
METHOD method_8564 processGlobalEvent (ILnet/minecraft/class_2338;I)V
ARG 1 eventId
ARG 2 pos
ARG 3 data
2022-04-20 13:31:04 -04:00
METHOD method_8567 processWorldEvent (ILnet/minecraft/class_2338;I)V
ARG 1 eventId
ARG 2 pos
ARG 3 data
2019-06-28 17:55:20 -04:00
METHOD method_8568 addParticle (Lnet/minecraft/class_2394;ZDDDDDD)V
ARG 1 parameters
ARG 2 shouldAlwaysSpawn
ARG 3 x
ARG 5 y
ARG 7 z
ARG 9 velocityX
ARG 11 velocityY
ARG 13 velocityZ
METHOD method_8569 setBlockBreakingInfo (ILnet/minecraft/class_2338;I)V
ARG 1 entityId
ARG 2 pos
ARG 3 stage
2019-06-28 17:55:20 -04:00
METHOD method_8570 updateBlock (Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;I)V
ARG 1 world
2019-06-28 17:55:20 -04:00
ARG 2 pos
ARG 3 oldState
ARG 4 newState
ARG 5 flags
2019-06-28 17:55:20 -04:00
METHOD method_8571 scheduleBlockRender (III)V
ARG 1 x
ARG 2 y
ARG 3 z
CLASS class_5347 ProgramInitException
METHOD <init> (Ljava/lang/String;Ljava/lang/Throwable;)V
ARG 1 message
ARG 2 cause