public RenderMagmaCube(RenderManager renderManagerIn) { super(renderManagerIn, new ModelMagmaCube(), 0.25F); }
public ModelBase makeModel() { return new ModelMagmaCube(); }
public ModelRenderer getModelRenderer(ModelBase model, String modelPart) { if (!(model instanceof ModelMagmaCube)) { return null; } else { ModelMagmaCube modelmagmacube = (ModelMagmaCube)model; if (modelPart.equals("core")) { return (ModelRenderer)Reflector.getFieldValue(modelmagmacube, Reflector.ModelMagmaCube_core); } else { String s = "segment"; if (modelPart.startsWith(s)) { ModelRenderer[] amodelrenderer = (ModelRenderer[])((ModelRenderer[])Reflector.getFieldValue(modelmagmacube, Reflector.ModelMagmaCube_segments)); if (amodelrenderer == null) { return null; } else { String s1 = modelPart.substring(s.length()); int i = Config.parseInt(s1, -1); --i; return i >= 0 && i < amodelrenderer.length ? amodelrenderer[i] : null; } } else { return null; } } } }
public RenderMagmaCube() { super(new ModelMagmaCube(), 0.25F); }