46 lines
1.2 KiB
Java
46 lines
1.2 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* it.unimi.dsi.fastutil.ints.IntSet
|
|
* it.unimi.dsi.fastutil.ints.IntSets
|
|
* org.jspecify.annotations.Nullable
|
|
*/
|
|
package net.minecraft.client.gui.font;
|
|
|
|
import com.mojang.blaze3d.font.GlyphInfo;
|
|
import com.mojang.blaze3d.font.GlyphProvider;
|
|
import com.mojang.blaze3d.font.UnbakedGlyph;
|
|
import it.unimi.dsi.fastutil.ints.IntSet;
|
|
import it.unimi.dsi.fastutil.ints.IntSets;
|
|
import net.minecraft.client.gui.font.glyphs.BakedGlyph;
|
|
import net.minecraft.client.gui.font.glyphs.SpecialGlyphs;
|
|
import org.jspecify.annotations.Nullable;
|
|
|
|
public class AllMissingGlyphProvider
|
|
implements GlyphProvider {
|
|
private static final UnbakedGlyph MISSING_INSTANCE = new UnbakedGlyph(){
|
|
|
|
@Override
|
|
public GlyphInfo info() {
|
|
return SpecialGlyphs.MISSING;
|
|
}
|
|
|
|
@Override
|
|
public BakedGlyph bake(UnbakedGlyph.Stitcher stitcher) {
|
|
return stitcher.getMissing();
|
|
}
|
|
};
|
|
|
|
@Override
|
|
public @Nullable UnbakedGlyph getGlyph(int codepoint) {
|
|
return MISSING_INSTANCE;
|
|
}
|
|
|
|
@Override
|
|
public IntSet getSupportedGlyphs() {
|
|
return IntSets.EMPTY_SET;
|
|
}
|
|
}
|
|
|