You know there is an easier way to do this right?
package O3Bubbles09.testmod.armor;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraftforge.common.IArmorTextureProvider;
public class ArmorFlyingArmor extends ItemArmor implements
IArmorTextureProvider {
public ArmorFlyingArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial,
int par3, int par4) {
super(par1, par2EnumArmorMaterial, par3, par4);
}
public void onArmorTickUpdate(World world, EntityPlayer player,
ItemStack itemStack) {
if(!world.isRemote) {
player.capabilities.allowFlying = true;
}
super.onArmorTickUpdate(world, player, itemStack);
}
public String getArmorTextureFile(ItemStack itemstack) {
return null;
}
}