is this right?
@SideOnly(Side.CLIENT)
public class ModelElectricBoots extends ModelBiped{
ModelRenderer rightLeg;
ModelRenderer leftLeg;
public ModelElectricBoots() {
textureWidth = 64;
textureHeight = 64;
rightLeg = new ModelRenderer(this, 0, 32);
rightLeg.addBox(10F, 1F, 10F, 6, 8, 8);
setRotation(rightLeg, 1F, 2F, -1F);
rightLeg.setTextureSize(64, 64);
rightLeg.mirror = true;
rightLeg.setRotationPoint(-1F, -2F, 1F);
leftLeg = new ModelRenderer(this, 0, 32);
leftLeg.addBox(10F, 1F, 10F, 6, 8, 8);
setRotation(rightLeg, 1F, 2F, -1F);
leftLeg.setTextureSize(64, 64);
leftLeg.mirror = true;
leftLeg.setRotationPoint(-1F, -2F, 1F);
bipedRightLeg.addChild(rightLeg);
bipedRightLeg.addChild(leftLeg);
}
public void render(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale) {
super.render(entity, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale);
setRotationAngles(limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale, entity);
}
public void setRotation(ModelRenderer model, float x, float y, float z) {
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
}
in armor class
@SideOnly(Side.CLIENT)
public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, EntityEquipmentSlot armorSlot, ModelBiped _default) {
ModelElectricBoots electricBoots = new ModelElectricBoots();
return electricBoots;
}