Spaces:
Build error
Build error
File size: 771 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 29 30 31 |
package com.mojang.blaze3d.font;
import it.unimi.dsi.fastutil.ints.IntSet;
import javax.annotation.Nullable;
import net.minecraft.client.gui.font.FontOption;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
@OnlyIn(Dist.CLIENT)
public interface GlyphProvider extends AutoCloseable {
float BASELINE = 7.0F;
@Override
default void close() {
}
@Nullable
default GlyphInfo getGlyph(int p_231091_) {
return null;
}
IntSet getSupportedGlyphs();
@OnlyIn(Dist.CLIENT)
public static record Conditional(GlyphProvider provider, FontOption.Filter filter) implements AutoCloseable {
@Override
public void close() {
this.provider.close();
}
}
} |