A mod that adds your armor to the hud modrinth.com/mod/simple-armor-hud
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: moved renderArmorPiece away

legoraft 5b282150 c1ec2bc7

+14 -14
+14 -14
src/client/java/com/armorhud/mixin/client/armorHudMixin.java
··· 105 105 */ 106 106 } 107 107 108 - // Pretty much the same as renderHotbarItem but with x and y as float parameters. 109 - @Unique 110 - private void renderArmorPiece(DrawContext context, float x, float y, PlayerEntity player, ItemStack stack) { 111 - if ( stack.isEmpty() ) return; 112 - 113 - context.getMatrices().pushMatrix(); 114 - context.getMatrices().translate(x, y); 115 - 116 - context.drawItem(player, stack, 0, 0, 1); 117 - 118 - context.drawStackOverlay(this.client.textRenderer, stack, 0,0); 119 - context.getMatrices().popMatrix(); 120 - } 121 - 122 108 @Unique 123 109 private void moveArmor(DrawContext context) { 124 110 if ( config.position != config.Position.FOODBAR && config.position != config.Position.HEALTHBAR ) { ··· 194 180 } 195 181 } 196 182 } 183 + } 184 + 185 + // Pretty much the same as renderHotbarItem but with x and y as float parameters. 186 + @Unique 187 + private void renderArmorPiece(DrawContext context, float x, float y, PlayerEntity player, ItemStack stack) { 188 + if ( stack.isEmpty() ) return; 189 + 190 + context.getMatrices().pushMatrix(); 191 + context.getMatrices().translate(x, y); 192 + 193 + context.drawItem(player, stack, 0, 0, 1); 194 + 195 + context.drawStackOverlay(this.client.textRenderer, stack, 0,0); 196 + context.getMatrices().popMatrix(); 197 197 } 198 198 199 199 }