Package com.nexomc.nexo.fonts
Class FontManager
-
- All Implemented Interfaces:
public final class FontManager
-
-
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(ConfigsManager configsManager)
-
Method Summary
Modifier and Type Method Description final Object2ObjectOpenHashMap<String, Glyph>getPlaceholderGlyphMap()final Object2ObjectOpenHashMap<Character, String>getUnicodeGlyphMap()final ObjectOpenHashSet<String>getTabcompletions()final UnitregisterEvents()final UnitunregisterEvents()final UnitregisterGlyph(Glyph glyph)final Collection<Glyph>glyphs()final List<Glyph>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)-
-
Constructor Detail
-
FontManager
FontManager(ConfigsManager configsManager)
-
-
Method Detail
-
getPlaceholderGlyphMap
final Object2ObjectOpenHashMap<String, Glyph> getPlaceholderGlyphMap()
-
getUnicodeGlyphMap
final Object2ObjectOpenHashMap<Character, String> getUnicodeGlyphMap()
-
getTabcompletions
final ObjectOpenHashSet<String> getTabcompletions()
-
registerEvents
final Unit registerEvents()
-
unregisterEvents
final Unit unregisterEvents()
-
registerGlyph
final Unit registerGlyph(Glyph glyph)
-
glyphs
final Collection<Glyph> glyphs()
-
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)
-
-
-
-