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

367 lines
14 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_20792 frame I
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 transparencyShader Lnet/minecraft/class_279;
FIELD field_27740 frustum Lnet/minecraft/class_4604;
FIELD field_27741 blockEntityRenderDispatcher Lnet/minecraft/class_824;
FIELD field_29619 chunkInfos Lnet/minecraft/class_761$class_5972;
FIELD field_4055 noCullingBlockEntities Ljava/util/Set;
FIELD field_4056 capturedFrustum Lnet/minecraft/class_4604;
2019-06-28 17:55:20 -04:00
FIELD field_4057 textureManager Lnet/minecraft/class_1060;
FIELD field_4058 blockBreakingInfos Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
2019-06-28 17:55:20 -04:00
FIELD field_4059 entityOutlineShader Lnet/minecraft/class_279;
FIELD field_4060 LOGGER Lorg/apache/logging/log4j/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
FIELD field_4065 capturedFrustumOrientation [Lnet/minecraft/class_1162;
2019-06-28 17:55:20 -04:00
FIELD field_4069 lastCameraX D
FIELD field_4070 lastCameraChunkUpdateZ 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_4075 chunksToRebuild Ljava/util/Set;
FIELD field_4077 needsTerrainUpdate Z
FIELD field_4080 lastCloudsRenderMode 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;
2020-11-04 15:44:22 -05:00
FIELD field_4086 visibleChunks Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
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
FIELD field_4091 capturedFrustumPosition Lnet/minecraft/class_1161;
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_4104 lastCameraChunkUpdateX D
FIELD field_4105 cameraChunkY I
FIELD field_4106 chunkBuilder Lnet/minecraft/class_846;
2019-06-28 17:55:20 -04:00
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_4120 lastCameraChunkUpdateY D
FIELD field_4121 cameraChunkZ I
METHOD <init> (Lnet/minecraft/class_310;Lnet/minecraft/class_4599;)V
ARG 1 client
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
2019-10-30 12:28:24 -04:00
METHOD method_22710 render (Lnet/minecraft/class_4587;FJZLnet/minecraft/class_4184;Lnet/minecraft/class_757;Lnet/minecraft/class_765;Lnet/minecraft/class_1159;)V
ARG 1 matrices
ARG 2 tickDelta
ARG 3 limitTime
ARG 5 renderBlockOutline
ARG 6 camera
ARG 7 gameRenderer
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
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
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
METHOD method_22987 removeBlockBreakingInfo (Lnet/minecraft/class_3191;)V
METHOD method_22989 renderChunkDebugInfo (Lnet/minecraft/class_4184;)V
ARG 1 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;
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_29365 loadTransparencyShader ()V
METHOD method_29701 resetTransparencyShader ()V
METHOD method_32133 setupFrustum (Lnet/minecraft/class_4587;Lnet/minecraft/class_243;Lnet/minecraft/class_1159;)V
ARG 1 matrices
ARG 2 pos
ARG 3 projectionMatrix
2019-06-28 17:55:20 -04:00
METHOD method_3239 renderClouds (Lnet/minecraft/class_287;DDDLnet/minecraft/class_243;)V
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_3241 getAdjacentChunk (Lnet/minecraft/class_2338;Lnet/minecraft/class_846$class_851;Lnet/minecraft/class_2350;)Lnet/minecraft/class_846$class_851;
2019-09-18 12:39:49 -04:00
ARG 1 pos
ARG 2 chunk
2019-09-18 12:39:49 -04:00
ARG 3 direction
2019-06-28 17:55:20 -04:00
METHOD method_3242 onResized (II)V
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
2021-03-10 13:34:17 -05:00
METHOD method_3251 renderLayer (Lnet/minecraft/class_1921;Lnet/minecraft/class_4587;DDDLnet/minecraft/class_1159;)V
2021-01-23 16:21:31 -05:00
ARG 1 renderLayer
ARG 2 matrices
2019-06-28 17:55:20 -04:00
METHOD method_3252 tick ()V
METHOD method_3254 drawEntityOutlinesFramebuffer ()V
METHOD method_3255 renderStars (Lnet/minecraft/class_287;)V
ARG 1 buffer
2021-06-01 12:22:33 -04:00
METHOD method_3257 renderSky (Lnet/minecraft/class_4587;Lnet/minecraft/class_1159;FLjava/lang/Runnable;)V
ARG 1 matrices
METHOD method_3258 drawBox (Lnet/minecraft/class_287;DDDDDDFFFF)V
2019-06-28 17:55:20 -04:00
ARG 0 buffer
ARG 1 x1
ARG 3 y1
ARG 5 z1
ARG 7 x2
ARG 9 y2
ARG 11 z2
2019-06-28 17:55:20 -04:00
ARG 13 red
ARG 14 green
ARG 15 blue
ARG 16 alpha
2021-03-10 13:34:17 -05:00
METHOD method_3259 renderClouds (Lnet/minecraft/class_4587;Lnet/minecraft/class_1159;FDDD)V
ARG 1 matrices
METHOD method_3265 renderDarkSky ()V
2019-06-28 17:55:20 -04:00
METHOD method_3268 getRandomParticleSpawnChance (Z)Lnet/minecraft/class_4066;
ARG 1 canSpawnOnMinimal
METHOD method_3269 updateChunks (J)V
ARG 1 limitTime
2019-06-28 17:55:20 -04:00
METHOD method_3270 canDrawEntityOutlines ()Z
METHOD method_3272 getEntitiesDebugString ()Ljava/lang/String;
METHOD method_3273 setupTerrain (Lnet/minecraft/class_4184;Lnet/minecraft/class_4604;ZIZ)V
ARG 1 camera
ARG 2 frustum
ARG 3 hasForcedFrustum
ARG 4 frame
ARG 5 spectator
METHOD method_3275 captureFrustum (Lnet/minecraft/class_1159;Lnet/minecraft/class_1159;DDDLnet/minecraft/class_4604;)V
ARG 1 modelMatrix
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
2019-06-28 17:55:20 -04:00
METHOD method_3279 reload ()V
METHOD method_3280 clearChunkRenderers ()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;
2019-09-27 12:23:24 -04:00
METHOD method_3291 drawShapeOutline (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
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
2019-06-28 17:55:20 -04:00
METHOD method_3296 loadEntityOutlineShader ()V
METHOD method_34810 getChunkBuilder ()Lnet/minecraft/class_846;
METHOD method_34811 getChunkCount ()D
METHOD method_34812 getViewDistance ()D
METHOD method_35774 reloadTransparencyShader ()V
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
METHOD method_8567 processWorldEvent (Lnet/minecraft/class_1657;ILnet/minecraft/class_2338;I)V
2019-06-28 17:55:20 -04:00
ARG 1 source
ARG 2 eventId
2019-06-28 17:55:20 -04:00
ARG 3 pos
ARG 4 data
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_762 ChunkInfo
FIELD field_4122 propagationLevel I
FIELD field_4124 chunk Lnet/minecraft/class_846$class_851;
2021-03-17 14:44:18 -04:00
FIELD field_4125 direction B
FIELD field_4126 cullingState B
METHOD method_3298 canCull (Lnet/minecraft/class_2350;)Z
ARG 1 from
METHOD method_3299 updateCullingState (BLnet/minecraft/class_2350;)V
ARG 1 parentCullingState
ARG 2 from
METHOD method_34813 hasAnyDirection ()Z
METHOD method_34814 hasDirection (I)Z
ARG 1 ordinal
METHOD method_34816 addDirection (Lnet/minecraft/class_2350;)V
ARG 1 direction
CLASS class_5347 ShaderException
METHOD <init> (Ljava/lang/String;Ljava/lang/Throwable;)V
ARG 1 message
ARG 2 cause
CLASS class_5972 ChunkInfoList
FIELD field_29620 current [Lnet/minecraft/class_761$class_762;
FIELD field_29621 pending [Lnet/minecraft/class_761$class_762;
METHOD method_34818 update ()V
METHOD method_34820 getInfo (Lnet/minecraft/class_846$class_851;)Lnet/minecraft/class_761$class_762;
ARG 1 chunk
METHOD method_34821 setInfo (Lnet/minecraft/class_846$class_851;Lnet/minecraft/class_761$class_762;)V
ARG 1 chunk
ARG 2 info