Package com.nexomc.nexo.fonts
Class FontManager
-
- All Implemented Interfaces:
-
com.nexomc.nexo.utils.Reloadable
public final class FontManager implements Reloadable
-
-
Field Summary
Fields Modifier and Type Field Description private final Object2ObjectOpenHashMap<String, Glyph>placeholderGlyphMapprivate final Object2ObjectOpenHashMap<Character, String>unicodeGlyphMapprivate final ObjectOpenHashSet<String>tabcompletions
-
Constructor Summary
Constructors Constructor Description FontManager()
-
Method Summary
Modifier and Type Method Description final Object2ObjectOpenHashMap<String, Glyph>getPlaceholderGlyphMap()final Object2ObjectOpenHashMap<Character, String>getUnicodeGlyphMap()final ObjectOpenHashSet<String>getTabcompletions()Unitreload()final UnitregisterGlyph(Glyph glyph)final Collection<Glyph>glyphs()final <Error class: unknown class>emojis()final GlyphglyphFromName(String id)Get a Glyph from a given Glyph-ID final GlyphglyphFromID(String id)Get a Glyph from a given Glyph-ID final GlyphglyphFromPlaceholder(String word)final UnitsendGlyphTabCompletion(Player player)-
-
Method Detail
-
getPlaceholderGlyphMap
final Object2ObjectOpenHashMap<String, Glyph> getPlaceholderGlyphMap()
-
getUnicodeGlyphMap
final Object2ObjectOpenHashMap<Character, String> getUnicodeGlyphMap()
-
getTabcompletions
final ObjectOpenHashSet<String> getTabcompletions()
-
registerGlyph
final Unit registerGlyph(Glyph glyph)
-
glyphs
final Collection<Glyph> glyphs()
-
emojis
final <Error class: unknown class> emojis()
-
glyphFromName
final Glyph glyphFromName(String id)
Get a Glyph from a given Glyph-ID
- Parameters:
id- The Glyph-ID- Returns:
Returns the Glyph if it exists, otherwise the required Glyph
-
glyphFromID
final Glyph glyphFromID(String id)
Get a Glyph from a given Glyph-ID
- Parameters:
id- The Glyph-ID- Returns:
Returns the Glyph if it exists, otherwise null
-
glyphFromPlaceholder
final Glyph glyphFromPlaceholder(String word)
-
sendGlyphTabCompletion
final Unit sendGlyphTabCompletion(Player player)
-
-
-
-