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

46 lines
1.2 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.jspecify.annotations.Nullable
*/
package net.minecraft.client.gui.font.glyphs;
import com.mojang.blaze3d.font.GlyphInfo;
import com.mojang.blaze3d.font.UnbakedGlyph;
import net.minecraft.client.gui.font.TextRenderable;
import net.minecraft.client.gui.font.glyphs.BakedGlyph;
import net.minecraft.network.chat.Style;
import org.jspecify.annotations.Nullable;
public class EmptyGlyph
implements UnbakedGlyph {
private final GlyphInfo info;
public EmptyGlyph(float advance) {
this.info = GlyphInfo.simple(advance);
}
@Override
public GlyphInfo info() {
return this.info;
}
@Override
public BakedGlyph bake(UnbakedGlyph.Stitcher stitcher) {
return new BakedGlyph(){
@Override
public GlyphInfo info() {
return EmptyGlyph.this.info;
}
@Override
public @Nullable TextRenderable.Styled createGlyph(float x, float y, int color, int shadowColor, Style style, float boldOffset, float shadowOffset) {
return null;
}
};
}
}