Every time I put on the armor in game it comes up with a bunch of errors in the problem bar and does not show the armor on the player. Here is my code
Armor class
public class SWATArmor extends ItemArmor implements IArmorTextureProvider{
// This Is Your Constructor, The First Param Is Item ID, The Second Is Its Material, The Third Is The Rendering ID, and The Final Is The Type (i.e. Helmet, Plate, Boots, Legs)
public SWATArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4){
super(par1, par2EnumArmorMaterial, par3, par4);
}
// This Sets What The Armor Is Supposed To Render Like
@Override
public String getArmorTextureFile(ItemStack itemstack) {
if (itemstack.itemID == ZombieCraft.SWAThelmet.itemID || itemstack.itemID == ZombieCraft.SWATvest.itemID || itemstack.itemID == ZombieCraft.SWATboots.itemID) {
return "/armor/SWATarmor_1.png";
}
if (itemstack.itemID == ZombieCraft.SWATpants.itemID) {
return "/armor/SWATarmor_2.png";
}
else return "/armor/SWATarmor_2.png";
}
[/size]
package alogo.mods.zombie.common;
import cpw.mods.fml.common.network.IGuiHandler;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
public class CommonProxy implements IGuiHandler
{
public void registerRenderThings()
{
}
@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
return null;
}
@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
return null;
}
public int addArmour(String SWATArmor){
return 0;
}
}
[size=medium]
[/size]
Client proxy
@Override
public int addArmour(String SWATArmor){
return RenderingRegistry.addNewArmourRendererPrefix(SWATArmor);
}
[size=medium]}
Sorry for the lack of updates recently, I have been very busy but I am going to try my best to update it soon thank you all for your continuous support.
0
ALogo21
0
New content will be added as well
0
When 1.5 comes out i'll make an update for it.
0
Armor class
mod file
Common proxy
Client proxy
0
0
0
I'll try to update it this weekend if not by then ill do it on the break and no the swat armor is a. Rare swat zombie drop
0
It worked for everyone else o.o start with a fresh bin folder
0
Are you using forge or modloader?
0
The more posts the more recognition so keep posting a forge version is coming soon! Thanks for all the positive feedback and requests
0
I just saw this post :/
0
I'm very sorry to hear that :(. Don't worry about it whenever you are free is fine.
0
I know that will be fixed when I update it sorry about that
0
0
Yup whenever you are free