StitcherException .java

net.minecraft.client.renderer.texture.StitcherException (class, 23 lines): extends RuntimeException. members: getAllSprites, allSprites. imports: EnvType.

net.minecraft.client.renderer.textureclass23 linesclientextends RuntimeException709 B

API Surface (1)

Collection<Stitcher.Entry> getAllSprites()

Fields & Constants (1)

allSprites

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

StitcherException.java23 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.renderer.texture;
2
3
import java.util.Collection;
4
import java.util.Locale;
5
import net.fabricmc.api.EnvType;
6
import net.fabricmc.api.Environment;
7
8
@Environment(EnvType.CLIENT)
9
public class StitcherException extends RuntimeException {
10
	private final Collection<Stitcher.Entry> allSprites;
11
12
	public StitcherException(final Stitcher.Entry sprite, final Collection<Stitcher.Entry> allSprites) {
13
		super(
14
			String.format(Locale.ROOT, "Unable to fit: %s - size: %dx%d - Maybe try a lower resolution resourcepack?", sprite.name(), sprite.width(), sprite.height())
15
		);
16
		this.allSprites = allSprites;
17
	}
18
19
	public Collection<Stitcher.Entry> getAllSprites() {
20
		return this.allSprites;
21
	}
22
}
23

Decompiled Minecraft 26.3 source of StitcherException (net/minecraft/client/renderer/texture/StitcherException.java) with Mojang official mappings, stored verbatim on the site.