Class GuiFonts

java.lang.Object
dev.boze.api.gui.render.GuiFonts

public final class GuiFonts extends Object
  • Method Details

    • gui

      public static GuiFont gui()
      Returns:
      The font the user picked for the GUI in Boze's font settings
    • vanilla

      public static GuiFont vanilla()
      Returns:
      Minecraft's font
    • load

      public static GuiFont load(net.minecraft.resources.Identifier ttf)
      Loads a TrueType font from resources. Fonts are cached by id.
      Parameters:
      ttf - Location of a .ttf file, for example myaddon:fonts/inter.ttf
      Returns:
      The font, or null if it cannot be read