public RenderGuardian(RenderManager renderManagerIn) { super(renderManagerIn, new ModelGuardian(), 0.5F); this.field_177115_a = ((ModelGuardian)this.mainModel).func_178706_a(); }
public ModelBase makeModel() { return new ModelGuardian(); }
public ModelRenderer getModelRenderer(ModelBase model, String modelPart) { if (!(model instanceof ModelGuardian)) { return null; } else { ModelGuardian modelguardian = (ModelGuardian)model; if (modelPart.equals("body")) { return (ModelRenderer)Reflector.getFieldValue(modelguardian, Reflector.ModelGuardian_body); } else if (modelPart.equals("eye")) { return (ModelRenderer)Reflector.getFieldValue(modelguardian, Reflector.ModelGuardian_eye); } else { String s = "spine"; if (modelPart.startsWith(s)) { ModelRenderer[] amodelrenderer1 = (ModelRenderer[])((ModelRenderer[])Reflector.getFieldValue(modelguardian, Reflector.ModelGuardian_spines)); 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 = "tail"; if (modelPart.startsWith(s1)) { ModelRenderer[] amodelrenderer = (ModelRenderer[])((ModelRenderer[])Reflector.getFieldValue(modelguardian, Reflector.ModelGuardian_tail)); 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 RenderGuardian(RenderManager renderManagerIn) { super(renderManagerIn, new ModelGuardian(), 0.5F); }
public RenderGuardian(RenderManager renderManagerIn) { super(renderManagerIn, new ModelGuardian(), 0.5F); this.lastModelVersion = ((ModelGuardian)this.mainModel).getModelVersion(); }