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>
placeholderGlyphMap
private final Object2ObjectOpenHashMap<Character, String>
unicodeGlyphMap
private 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 Unit
registerEvents()
final Unit
unregisterEvents()
final Unit
registerGlyph(Glyph glyph)
final Collection<Glyph>
glyphs()
final List<Glyph>
emojis()
final Glyph
glyphFromName(String id)
Get a Glyph from a given Glyph-ID final Glyph
glyphFromID(String id)
Get a Glyph from a given Glyph-ID final Glyph
glyphFromPlaceholder(String word)
final Unit
sendGlyphTabCompletion(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)
-
-
-
-