private Set<ResourceLocation> getItemsTextureLocations()
{
Set<ResourceLocation> set = Sets.<ResourceLocation>newHashSet();
for (ResourceLocation resourcelocation : this.itemLocations.values())
{
ModelBlock modelblock = (ModelBlock)this.models.get(resourcelocation);
if (modelblock != null)
{
set.add(new ResourceLocation(modelblock.resolveTextureName("particle")));
if (this.hasItemModel(modelblock))
{
for (String s : ItemModelGenerator.LAYERS)
{
ResourceLocation resourcelocation2 = new ResourceLocation(modelblock.resolveTextureName(s));
if (modelblock.getRootModel() == MODEL_COMPASS && !TextureMap.LOCATION_MISSING_TEXTURE.equals(resourcelocation2))
{
TextureAtlasSprite.setLocationNameCompass(resourcelocation2.toString());
}
else if (modelblock.getRootModel() == MODEL_CLOCK && !TextureMap.LOCATION_MISSING_TEXTURE.equals(resourcelocation2))
{
TextureAtlasSprite.setLocationNameClock(resourcelocation2.toString());
}
set.add(resourcelocation2);
}
}
else if (!this.isCustomRenderer(modelblock))
{
for (BlockPart blockpart : modelblock.getElements())
{
for (BlockPartFace blockpartface : blockpart.mapFaces.values())
{
ResourceLocation resourcelocation1 = new ResourceLocation(modelblock.resolveTextureName(blockpartface.texture));
set.add(resourcelocation1);
}
}
}
}
}
return set;
}
ModelBakery.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:BaseClient
作者:
评论列表
文章目录