package net.minecraft.client.renderer.texture; import java.util.Collection; import java.util.Locale; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; @Environment(EnvType.CLIENT) public class StitcherException extends RuntimeException { private final Collection allSprites; public StitcherException(Stitcher.Entry entry, Collection allSprites) { super(String.format(Locale.ROOT, "Unable to fit: %s - size: %dx%d - Maybe try a lower resolution resourcepack?", entry.name(), entry.width(), entry.height())); this.allSprites = allSprites; } public Collection getAllSprites() { return this.allSprites; } }