ModelBakery.java 文件源码

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

项目:DecompiledMinecraft 作者:
private void loadSprites()
{
    final Set<ResourceLocation> set = this.getVariantsTextureLocations();
    set.addAll(this.getItemsTextureLocations());
    set.remove(TextureMap.LOCATION_MISSING_TEXTURE);
    IIconCreator iiconcreator = new IIconCreator()
    {
        public void registerSprites(TextureMap iconRegistry)
        {
            for (ResourceLocation resourcelocation : set)
            {
                TextureAtlasSprite textureatlassprite = iconRegistry.registerSprite(resourcelocation);
                ModelBakery.this.sprites.put(resourcelocation, textureatlassprite);
            }
        }
    };
    this.textureMap.loadSprites(this.resourceManager, iiconcreator);
    this.sprites.put(new ResourceLocation("missingno"), this.textureMap.getMissingSprite());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号