Class BedrockBitmapFont
java.lang.Object
com.viaversion.viafabricplus.bedrock.render.font.BedrockBitmapFont
- All Implemented Interfaces:
com.mojang.blaze3d.font.GlyphProvider, AutoCloseable
public final class BedrockBitmapFont
extends Object
implements com.mojang.blaze3d.font.GlyphProvider
Retains native bitmap metrics and sampling on a provider-owned atlas.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mojang.blaze3d.font.GlyphProvider
com.mojang.blaze3d.font.GlyphProvider.Conditional -
Field Summary
Fields inherited from interface com.mojang.blaze3d.font.GlyphProvider
BASELINE -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()com.mojang.blaze3d.font.UnbakedGlyphgetGlyph(int codepoint) it.unimi.dsi.fastutil.ints.IntSetstatic com.mojang.blaze3d.font.GlyphProviderloadBitmap(com.mojang.blaze3d.font.GlyphProvider source, net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.resources.Identifier file, int[][] grid) Resolve the descriptor and retained page from the converted texture's own pack.static com.mojang.blaze3d.font.GlyphProviderloadUnicode(net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.resources.Identifier file, int[][] grid, int height, int ascent) static booleanownsBitmap(net.minecraft.resources.Identifier file) static booleanownsUnicode(net.minecraft.resources.Identifier file)
-
Method Details
-
ownsUnicode
public static boolean ownsUnicode(net.minecraft.resources.Identifier file) -
loadUnicode
public static com.mojang.blaze3d.font.GlyphProvider loadUnicode(net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.resources.Identifier file, int[][] grid, int height, int ascent) throws IOException - Throws:
IOException
-
ownsBitmap
public static boolean ownsBitmap(net.minecraft.resources.Identifier file) -
loadBitmap
public static com.mojang.blaze3d.font.GlyphProvider loadBitmap(com.mojang.blaze3d.font.GlyphProvider source, net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.resources.Identifier file, int[][] grid) throws IOException Resolve the descriptor and retained page from the converted texture's own pack.- Throws:
IOException
-
getGlyph
public com.mojang.blaze3d.font.UnbakedGlyph getGlyph(int codepoint) - Specified by:
getGlyphin interfacecom.mojang.blaze3d.font.GlyphProvider
-
getSupportedGlyphs
public it.unimi.dsi.fastutil.ints.IntSet getSupportedGlyphs()- Specified by:
getSupportedGlyphsin interfacecom.mojang.blaze3d.font.GlyphProvider
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacecom.mojang.blaze3d.font.GlyphProvider
-