CustomItemProperties.java 文件源码

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

项目:Backmemed 作者:
public void updateModel(TextureMap p_updateModel_1_, ItemModelGenerator p_updateModel_2_)
{
    String[] astring = this.getModelTextures();
    boolean flag = this.isUseTint();
    this.model = makeBakedModel(p_updateModel_1_, p_updateModel_2_, astring, flag);

    if (this.type == 1 && this.mapTextures != null)
    {
        for (String s : this.mapTextures.keySet())
        {
            String s1 = (String)this.mapTextures.get(s);
            String s2 = StrUtils.removePrefix(s, "texture.");

            if (s2.startsWith("bow") || s2.startsWith("fishing_rod"))
            {
                String[] astring1 = new String[] {s1};
                IBakedModel ibakedmodel = makeBakedModel(p_updateModel_1_, p_updateModel_2_, astring1, flag);

                if (this.mapModels == null)
                {
                    this.mapModels = new HashMap();
                }

                String s3 = "item/" + s2;
                this.mapModels.put(s3, ibakedmodel);
            }
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号