Java 类net.minecraft.client.model.ModelBook 实例源码

项目:Backmemed    文件:ModelAdapterBook.java   
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))))));
    }
}
项目:Backmemed    文件:ModelAdapterBook.java   
public ModelBase makeModel()
{
    return new ModelBook();
}