/******************************************************************************* * AbyssalCraft * Copyright (c) 2012 - 2017 Shinoow. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v3 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/lgpl-3.0.txt * * Contributors: * Shinoow - implementation ******************************************************************************/ package com.shinoow.abyssalcraft.client.model.entity; import net.minecraft.client.model.ModelQuadruped; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class ModelDemonSheep1 extends ModelQuadruped { private float headRotationAngleX; public ModelDemonSheep1() { super(12, 0.0F); head = new ModelRenderer(this, 0, 0); head.addBox(-3.0F, -4.0F, -4.0F, 6, 6, 6, 0.6F); head.setRotationPoint(0.0F, 6.0F, -8.0F); body = new ModelRenderer(this, 28, 8); body.addBox(-4.0F, -10.0F, -7.0F, 8, 16, 6, 1.75F); body.setRotationPoint(0.0F, 5.0F, 2.0F); float f = 0.5F; leg1 = new ModelRenderer(this, 0, 16); leg1.addBox(-2.0F, 0.0F, -2.0F, 4, 6, 4, f); leg1.setRotationPoint(-3.0F, 12.0F, 7.0F); leg2 = new ModelRenderer(this, 0, 16); leg2.addBox(-2.0F, 0.0F, -2.0F, 4, 6, 4, f); leg2.setRotationPoint(3.0F, 12.0F, 7.0F); leg3 = new ModelRenderer(this, 0, 16); leg3.addBox(-2.0F, 0.0F, -2.0F, 4, 6, 4, f); leg3.setRotationPoint(-3.0F, 12.0F, -5.0F); leg4 = new ModelRenderer(this, 0, 16); leg4.addBox(-2.0F, 0.0F, -2.0F, 4, 6, 4, f); leg4.setRotationPoint(3.0F, 12.0F, -5.0F); } /** * Sets the model's various rotation angles. For bipeds, par1 and par2 are used for animating the movement of arms * and legs, where par1 represents the time(so that arms and legs swing back and forth) and par2 represents how * "far" arms and legs can swing at most. */ @Override public void setRotationAngles(float p_78087_1_, float p_78087_2_, float p_78087_3_, float p_78087_4_, float p_78087_5_, float p_78087_6_, Entity entityIn) { super.setRotationAngles(p_78087_1_, p_78087_2_, p_78087_3_, p_78087_4_, p_78087_5_, p_78087_6_, entityIn); head.rotateAngleX = headRotationAngleX; } }