Spaces:
Build error
Build error
package net.minecraft.client.resources; | |
import com.mojang.blaze3d.platform.NativeImage; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import net.minecraft.resources.ResourceLocation; | |
import net.minecraft.server.packs.resources.ResourceManager; | |
import net.minecraftforge.api.distmarker.Dist; | |
import net.minecraftforge.api.distmarker.OnlyIn; | |
public class LegacyStuffWrapper { | |
public static int[] getPixels(ResourceManager p_118727_, ResourceLocation p_118728_) throws IOException { | |
int[] aint; | |
try ( | |
InputStream inputstream = p_118727_.open(p_118728_); | |
NativeImage nativeimage = NativeImage.read(inputstream); | |
) { | |
aint = nativeimage.makePixelArray(); | |
} | |
return aint; | |
} | |
} |