LUModder Posted March 10, 2014 Share Posted March 10, 2014 I am trying to get armor to work for my mod so it can work on servers, because of the rendering method I'm using at the moment is causing it to be a Client Only mod for the moment. The method I am using now: RenderingRegistry.addNewArmourRendererPrefix("ArmorTexture"); What I want to use: proxy.addArmor("ArmorTexture"); When I want to use this method, armor doesn't render and my console gets flooded with this: 2014-03-10 15:21:07 [iNFO] [sTDERR] java.lang.ArrayIndexOutOfBoundsException: 5 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.renderer.entity.RenderBiped.getArmorResource(RenderBiped.java:92) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.renderer.entity.RenderPlayer.setArmorModel(RenderPlayer.java:72) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.renderer.entity.RenderPlayer.shouldRenderPass(RenderPlayer.java:514) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.renderer.entity.RendererLivingEntity.doRenderLiving(RendererLivingEntity.java:164) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.renderer.entity.RenderPlayer.func_130009_a(RenderPlayer.java:166) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:556) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.renderer.entity.RenderManager.renderEntityWithPosYaw(RenderManager.java:312) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.gui.inventory.GuiInventory.func_110423_a(GuiInventory.java:121) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:849) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:128) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:43) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:683) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1036) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:946) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:838) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.client.main.Main.main(Main.java:93) 2014-03-10 15:21:07 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2014-03-10 15:21:07 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2014-03-10 15:21:07 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2014-03-10 15:21:07 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131) 2014-03-10 15:21:07 [iNFO] [sTDERR] at net.minecraft.launchwrapper.Launch.main(Launch.java:27) Can someone please tell me what I'm doing wrong? Note: I am not new to modding, it's just I'm not good with server side type modding yet. My class files: (The main base class, CommonProxy and ClientProxy): http://pastebin.com/hUJavejE Quote Link to comment Share on other sites More sharing options...
TheGreyGhost Posted March 10, 2014 Share Posted March 10, 2014 Hi This link might help you with understanding CommonProxy and ClientProxy. http://greyminecraftcoder.blogspot.com/2013/11/how-forge-starts-up-your-code.html -TGG Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.