public SilverfishModel() { normal = new ModelSilverfish(); body = ReflectionHelper.getPrivateValue( ModelSilverfish.class, this, 0 ); wings = ReflectionHelper.getPrivateValue( ModelSilverfish.class, this, 1 ); body[ 3 ].rotateAngleX = body[ 4 ].rotateAngleX = body[ 5 ].rotateAngleX = body[ 6 ].rotateAngleX = 3.14f / 2; body[ 3 ].rotationPointZ = body[ 4 ].rotationPointZ = body[ 5 ].rotationPointZ = body[ 6 ].rotationPointZ = 0; body[ 6 ].offsetY = 0; body[ 5 ].offsetY = -0.1f; body[ 4 ].rotateAngleX *= -0.7f; body[ 4 ].offsetZ = 0.06f; body[ 4 ].offsetY = -0.2f; body[ 3 ].rotateAngleX *= -0.45f; body[ 3 ].offsetY = -0.3f; body[ 3 ].offsetZ = -0.05f; wings[ 1 ].rotateAngleX = body[ 5 ].rotateAngleX*1.4f; wings[ 1 ].rotationPointZ = body[ 5 ].rotationPointZ; wings[ 1 ].offsetY = body[ 4 ].offsetX; wings[ 1 ].offsetZ = -0.05f; }
public RenderSilverfish(RenderManager renderManagerIn) { super(renderManagerIn, new ModelSilverfish(), 0.3F); }
public ModelBase makeModel() { return new ModelSilverfish(); }
public ModelRenderer getModelRenderer(ModelBase model, String modelPart) { if (!(model instanceof ModelSilverfish)) { return null; } else { ModelSilverfish modelsilverfish = (ModelSilverfish)model; String s = "body"; if (modelPart.startsWith(s)) { ModelRenderer[] amodelrenderer1 = (ModelRenderer[])((ModelRenderer[])Reflector.getFieldValue(modelsilverfish, Reflector.ModelSilverfish_bodyParts)); if (amodelrenderer1 == null) { return null; } else { String s3 = modelPart.substring(s.length()); int j = Config.parseInt(s3, -1); --j; return j >= 0 && j < amodelrenderer1.length ? amodelrenderer1[j] : null; } } else { String s1 = "wing"; if (modelPart.startsWith(s1)) { ModelRenderer[] amodelrenderer = (ModelRenderer[])((ModelRenderer[])Reflector.getFieldValue(modelsilverfish, Reflector.ModelSilverfish_wingParts)); if (amodelrenderer == null) { return null; } else { String s2 = modelPart.substring(s1.length()); int i = Config.parseInt(s2, -1); --i; return i >= 0 && i < amodelrenderer.length ? amodelrenderer[i] : null; } } else { return null; } } } }
public RenderAmber(){ this.model = new ModelBlock(); modelSilverfish = new ModelSilverfish(); modelSpider = new ModelSpider(); modelCompsognathus = new ModelCompsognathus(); }
public RenderSilverfish() { super(new ModelSilverfish(), 0.3F); }