package net.minecraft.client.resources;

import java.io.IOException;
import net.minecraft.server.packs.resources.Resource;
import com.mojang.blaze3d.platform.NativeImage;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.server.packs.resources.ResourceManager;

public class LegacyStuffWrapper {
    @Deprecated
    public static int[] getPixels(final ResourceManager abc, final ResourceLocation uh) throws IOException {
        try (final Resource abb3 = abc.getResource(uh);
             final NativeImage dgs5 = NativeImage.read(abb3.getInputStream())) {
            return dgs5.makePixelArray();
        }
    }
}
