Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[1.6.4] Using CommonProxy armor rendering causes armor not to display.

Featured Replies

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.