RenderGenericLiving.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:ZeldaSwordSkills 作者:
/**
 * @param model         May be either an IModelBiped or a ModelBiped; any animations need to be handled in the model class directly
 * @param scale         Scale of the full size model; child versions will render at half this scale
 * @param texturePath   Be sure to prefix with the Mod ID if needed, otherwise it will use the Minecraft texture path
 */
public RenderGenericLiving(RenderManager renderManager, ModelBase model, float shadowSize, float scale, String texturePath) {
    super(renderManager, model, shadowSize);
    this.texture = new ResourceLocation(texturePath);
    this.scale = scale;
    if (model instanceof IModelBiped) {
        this.addLayer(new LayerCustomHead(((IModelBiped) model).getHeadModel()));
        this.addLayer(new LayerGenericHeldItem(this));
    } else if (model instanceof ModelBiped) {
        this.addLayer(new LayerCustomHead(((ModelBiped) model).bipedHead));
        this.addLayer(new LayerHeldItem(this));
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号