public static IBakedModel makeModel(String p_makeModel_0_, TextureAtlasSprite p_makeModel_1_, TextureAtlasSprite p_makeModel_2_)
{
if (p_makeModel_1_ != null && p_makeModel_2_ != null)
{
ModelManager modelmanager = Config.getModelManager();
if (modelmanager == null)
{
return null;
}
else
{
ModelResourceLocation modelresourcelocation = new ModelResourceLocation(p_makeModel_0_, "normal");
IBakedModel ibakedmodel = modelmanager.getModel(modelresourcelocation);
if (ibakedmodel != null && ibakedmodel != modelmanager.getMissingModel())
{
IBakedModel ibakedmodel1 = ModelUtils.duplicateModel(ibakedmodel);
EnumFacing[] aenumfacing = EnumFacing.VALUES;
for (int i = 0; i < aenumfacing.length; ++i)
{
EnumFacing enumfacing = aenumfacing[i];
List<BakedQuad> list = ibakedmodel1.getQuads((IBlockState)null, enumfacing, 0L);
replaceTexture(list, p_makeModel_1_, p_makeModel_2_);
}
List<BakedQuad> list1 = ibakedmodel1.getQuads((IBlockState)null, (EnumFacing)null, 0L);
replaceTexture(list1, p_makeModel_1_, p_makeModel_2_);
return ibakedmodel1;
}
else
{
return null;
}
}
}
else
{
return null;
}
}
BlockModelUtils.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:Backmemed
作者:
评论列表
文章目录