public ModelRenderer getModelRenderer(ModelBase model, String modelPart) { if (!(model instanceof ModelBook)) { return null; } else { ModelBook modelbook = (ModelBook)model; return modelPart.equals("cover_right") ? modelbook.coverRight : (modelPart.equals("cover_left") ? modelbook.coverLeft : (modelPart.equals("pages_right") ? modelbook.pagesRight : (modelPart.equals("pages_left") ? modelbook.pagesLeft : (modelPart.equals("flipping_page_right") ? modelbook.flippingPageRight : (modelPart.equals("flipping_page_left") ? modelbook.flippingPageLeft : (modelPart.equals("book_spine") ? modelbook.bookSpine : null)))))); } }
public ModelBase makeModel() { return new ModelBook(); }