2025-11-24 22:52:51 +03:00

24 lines
717 B
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.client.renderer.texture;
import java.util.Collection;
import java.util.Locale;
import net.minecraft.client.renderer.texture.Stitcher;
public class StitcherException
extends RuntimeException {
private final Collection<Stitcher.Entry> allSprites;
public StitcherException(Stitcher.Entry sprite, Collection<Stitcher.Entry> allSprites) {
super(String.format(Locale.ROOT, "Unable to fit: %s - size: %dx%d - Maybe try a lower resolution resourcepack?", sprite.name(), sprite.width(), sprite.height()));
this.allSprites = allSprites;
}
public Collection<Stitcher.Entry> getAllSprites() {
return this.allSprites;
}
}