Interface NamesModule
- All Superinterfaces:
ModuleLocalization, ModuleSimple
Builds the name shown for a sender, including prefixes, suffixes and the invisible-player form.
-
Method Summary
Modifier and TypeMethodDescriptionaddInvisibleTag(MessageContext messageContext) Registers the tag that hides a name when the sender should not be identified.addTags(MessageContext messageContext) Registers the tags that render a sender's name, prefix and suffix.config()The config section this module reads its settings from.booleanisInvisible(FEntity entity) Whether this entity's name should be hidden, because it is vanished or drinking an invisibility potion.localization(FPlayer fPlayer) The localization section for a player, picked from their chosen language.The permission that gates this module.voidupdateConstant(FPlayer fPlayer) Parses this player's constantsMethods inherited from interface ModuleLocalization
cooldown, cooldownOrThrow, permissions, sound, soundOrThrow
-
Method Details
-
config
Message.Format.Names config()Description copied from interface:ModuleSimpleThe config section this module reads its settings from.- Specified by:
configin interfaceModuleSimple- Returns:
- the settings
-
permission
Permission.Message.Format.Names permission()Description copied from interface:ModuleSimpleThe permission that gates this module.- Specified by:
permissionin interfaceModuleSimple- Returns:
- the permission
-
localization
Description copied from interface:ModuleLocalizationThe localization section for a player, picked from their chosen language.- Specified by:
localizationin interfaceModuleLocalization- Parameters:
fPlayer- the player the text is for- Returns:
- the localization settings
-
addTags
Registers the tags that render a sender's name, prefix and suffix.- Parameters:
messageContext- the message being formatted- Returns:
- the context with the tags added
-
addInvisibleTag
Registers the tag that hides a name when the sender should not be identified.- Parameters:
messageContext- the message being formatted- Returns:
- the context with the tag added
-
isInvisible
Whether this entity's name should be hidden, because it is vanished or drinking an invisibility potion.- Parameters:
entity- the entity- Returns:
- true if the name is hidden
-
updateConstant
Parses this player's constants- Parameters:
fPlayer- the player
-