GlyphProvider .java

com.mojang.blaze3d.font.GlyphProvider (interface): members: BASELINE, Conditional, getSupportedGlyphs, getGlyph, close. imports: FontOption, IntSet.

com.mojang.blaze3d.fontinterface31 linesclientextends AutoCloseable698 B

API Surface (1)

void close()

Fields & Constants (1)

BASELINE

Code Graph: Dependencies (2)

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

Full Source

GlyphProvider.java31 lines · Minecraft 26.3 · verbatim
1
package com.mojang.blaze3d.font;
2
3
import it.unimi.dsi.fastutil.ints.IntSet;
4
import net.fabricmc.api.EnvType;
5
import net.fabricmc.api.Environment;
6
import net.minecraft.client.gui.font.FontOption;
7
import org.jspecify.annotations.Nullable;
8
9
@Environment(EnvType.CLIENT)
10
public interface GlyphProvider extends AutoCloseable {
11
	float BASELINE = 7.0F;
12
13
	@Override
14
	default void close() {
15
	}
16
17
	default @Nullable UnbakedGlyph getGlyph(final int codepoint) {
18
		return null;
19
	}
20
21
	IntSet getSupportedGlyphs();
22
23
	@Environment(EnvType.CLIENT)
24
	record Conditional(GlyphProvider provider, FontOption.Filter filter) implements AutoCloseable {
25
		@Override
26
		public void close() {
27
			this.provider.close();
28
		}
29
	}
30
}
31

Decompiled Minecraft 26.3 source of GlyphProvider (com/mojang/blaze3d/font/GlyphProvider.java) with Mojang official mappings, stored verbatim on the site.