BetterGrass.java 文件源码

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

项目:Backmemed 作者:
private static TextureAtlasSprite registerSprite(Properties p_registerSprite_0_, String p_registerSprite_1_, String p_registerSprite_2_, TextureMap p_registerSprite_3_)
{
    String s = p_registerSprite_0_.getProperty(p_registerSprite_1_);

    if (s == null)
    {
        s = p_registerSprite_2_;
    }

    ResourceLocation resourcelocation = new ResourceLocation("textures/" + s + ".png");

    if (!Config.hasResource(resourcelocation))
    {
        Config.warn("BetterGrass texture not found: " + resourcelocation);
        s = p_registerSprite_2_;
    }

    ResourceLocation resourcelocation1 = new ResourceLocation(s);
    TextureAtlasSprite textureatlassprite = p_registerSprite_3_.registerSprite(resourcelocation1);
    return textureatlassprite;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号