yarn/mappings/net/minecraft/client/render/entity/EnderDragonEntityRenderer.m...

79 lines
3.2 KiB
Plaintext
Raw Normal View History

2019-06-28 17:55:20 -04:00
CLASS net/minecraft/class_895 net/minecraft/client/render/entity/EnderDragonEntityRenderer
FIELD field_21006 EYE_TEXTURE Lnet/minecraft/class_2960;
FIELD field_21007 HALF_SQRT_3 F
FIELD field_21008 model Lnet/minecraft/class_895$class_625;
FIELD field_21737 DRAGON_CUTOUT Lnet/minecraft/class_1921;
FIELD field_21738 DRAGON_DECAL Lnet/minecraft/class_1921;
FIELD field_21739 DRAGON_EYES Lnet/minecraft/class_1921;
FIELD field_21740 CRYSTAL_BEAM_LAYER Lnet/minecraft/class_1921;
FIELD field_4668 CRYSTAL_BEAM_TEXTURE Lnet/minecraft/class_2960;
FIELD field_4669 EXPLOSION_TEXTURE Lnet/minecraft/class_2960;
FIELD field_4670 TEXTURE Lnet/minecraft/class_2960;
METHOD method_23156 (Lnet/minecraft/class_4588;Lnet/minecraft/class_1159;FF)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 0 vertices
ARG 1 matrix
ARG 2 y
ARG 3 x
METHOD method_23157 (Lnet/minecraft/class_4588;Lnet/minecraft/class_1159;I)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 0 vertices
ARG 1 matrix
ARG 2 alpha
METHOD method_23158 (Lnet/minecraft/class_4588;Lnet/minecraft/class_1159;FF)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 0 vertices
ARG 1 matrix
ARG 2 y
ARG 3 x
METHOD method_23159 (Lnet/minecraft/class_4588;Lnet/minecraft/class_1159;FF)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 0 vertices
ARG 1 matrix
ARG 2 y
ARG 3 z
METHOD method_32165 getTexturedModelData ()Lnet/minecraft/class_5607;
METHOD method_3917 renderCrystalBeam (FFFFILnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V
ARG 0 dx
ARG 1 dy
ARG 2 dz
ARG 3 tickDelta
ARG 4 age
ARG 5 matrices
ARG 6 vertexConsumers
ARG 7 light
2019-09-27 12:27:32 -04:00
CLASS class_625 DragonEntityModel
FIELD field_21441 dragon Lnet/minecraft/class_1510;
FIELD field_21442 tickDelta F
FIELD field_21548 leftWingTip Lnet/minecraft/class_630;
FIELD field_21549 leftFrontLeg Lnet/minecraft/class_630;
FIELD field_21550 leftFrontLegTip Lnet/minecraft/class_630;
FIELD field_21551 leftFrontFoot Lnet/minecraft/class_630;
FIELD field_21552 leftHindLeg Lnet/minecraft/class_630;
FIELD field_21553 leftHindLegTip Lnet/minecraft/class_630;
FIELD field_21554 leftHindFoot Lnet/minecraft/class_630;
FIELD field_21555 rightWing Lnet/minecraft/class_630;
FIELD field_3625 rightFrontFoot Lnet/minecraft/class_630;
FIELD field_3626 rightHindLegTip Lnet/minecraft/class_630;
2019-09-27 12:23:24 -04:00
FIELD field_3627 body Lnet/minecraft/class_630;
FIELD field_3628 rightHindFoot Lnet/minecraft/class_630;
FIELD field_3629 leftWing Lnet/minecraft/class_630;
2019-09-27 12:23:24 -04:00
FIELD field_3630 head Lnet/minecraft/class_630;
FIELD field_3631 jaw Lnet/minecraft/class_630;
FIELD field_3632 rightFrontLeg Lnet/minecraft/class_630;
FIELD field_3633 rightHindLeg Lnet/minecraft/class_630;
FIELD field_3634 rightFrontLegTip Lnet/minecraft/class_630;
FIELD field_3635 rightWingTip Lnet/minecraft/class_630;
2019-09-27 12:23:24 -04:00
FIELD field_3637 neck Lnet/minecraft/class_630;
METHOD <init> (Lnet/minecraft/class_630;)V
ARG 1 part
2021-03-10 13:34:17 -05:00
METHOD method_23838 setLimbRotation (Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;IIFLnet/minecraft/class_630;Lnet/minecraft/class_630;Lnet/minecraft/class_630;Lnet/minecraft/class_630;Lnet/minecraft/class_630;Lnet/minecraft/class_630;Lnet/minecraft/class_630;F)V
ARG 1 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 2 vertices
ARG 3 light
ARG 4 overlay
ARG 5 offset
ARG 6 wing
ARG 7 frontLeg
ARG 8 frontLegTip
ARG 9 frontFoot
ARG 10 hindLeg
ARG 11 hindLegTip
ARG 12 hindFoot