File size: 866 Bytes
d46f4a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package net.minecraft.client.renderer.texture;

import java.util.Collection;
import java.util.Locale;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;

@OnlyIn(Dist.CLIENT)
public class StitcherException extends RuntimeException {
    private final Collection<Stitcher.Entry> allSprites;

    public StitcherException(Stitcher.Entry p_250177_, Collection<Stitcher.Entry> p_248618_) {
        super(
            String.format(
                Locale.ROOT,
                "Unable to fit: %s - size: %dx%d - Maybe try a lower resolution resourcepack?",
                p_250177_.name(),
                p_250177_.width(),
                p_250177_.height()
            )
        );
        this.allSprites = p_248618_;
    }

    public Collection<Stitcher.Entry> getAllSprites() {
        return this.allSprites;
    }
}