StructuralLevelClientData.java 文件源码

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

项目:JABBA 作者:
private static int[] getPixelsForTexture(boolean item, ResourceLocation resourcelocation)
{
    BetterBarrels.debug("09 - Entering texture load method for texture : " + resourcelocation.toString());
    ResourceLocation resourcelocation1 = new ResourceLocation(resourcelocation.func_110624_b(), String.format("%s/%s%s", new Object[] { item ? "textures/items" : "textures/blocks", resourcelocation.func_110623_a(), ".png" }));
    BetterBarrels.debug("11 - Modified resource path : " + resourcelocation1.toString());
    int[] pixels = null;
    try
    {
        pixels = TextureUtil.func_110986_a(Minecraft.func_71410_x().func_110442_L(), resourcelocation1);
    }
    catch (Throwable t)
    {
        BetterBarrels.log.warn("JABBA-Debug Problem loading texture: " + resourcelocation);
    }
    BetterBarrels.debug("12 - read texture data of length : " + (pixels != null ? Integer.valueOf(pixels.length) : "(null)"));
    return pixels;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号