ModelBakery.java 文件源码

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

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


问题


面经


文章

微信
公众号

扫码关注公众号