Posted September 16, 201510 yr For my mod, i wanna add a second armorlayer below the normal one. How can i make that? What are the things i need?
September 17, 201510 yr Author Is that the right way of doing it? public void onRenderPlayer(RenderPlayerEvent e){ e.renderer.addLayer(new LayerRenderer() { @Override public boolean shouldCombineTextures() { return true; } @Override public void doRenderLayer(EntityLivingBase e, float x, float y, float z, float p_177141_5_, float p_177141_6_, float p_177141_7_, float p_177141_8_) { } }); }
September 17, 201510 yr Author Oh My mistake, do i add it in the RenderPlayerEvent or in some other method somewhere?
September 17, 201510 yr He could so long as he records if it has been run and doesn't run again. Silly way to do it though. Long time Bukkit & Forge Programmer Happy to try and help
September 19, 201510 yr I would advise EntityConstruct event to add the your layer to the RenderPlayer instance. Use Minecraft.getMinecraft().getRenderManager.getEntityRenderObject(EntityPlayerSP); Make sure you use the client player, and check if the entity is instance of the EntityPlayer.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.