Class FontUtil

java.lang.Object
com.palmergames.bukkit.util.FontUtil

public class FontUtil extends Object
  • Field Details

    • font

      @Internal public static final org.bukkit.map.MinecraftFont font
  • Constructor Details

    • FontUtil

      public FontUtil()
  • Method Details

    • measureWidth

      public static float measureWidth(net.kyori.adventure.text.Component source)
    • measureWidth

      public static float measureWidth(String source)
    • measureWidth

      public static float measureWidth(String source, net.kyori.adventure.text.format.Style style)
    • measureWidth

      public static float measureWidth(char source)
    • measureWidth

      public static float measureWidth(char source, net.kyori.adventure.text.format.Style style)
    • isValidMinecraftFont

      public static boolean isValidMinecraftFont(String text)