Interface AnimationModule
- All Superinterfaces:
ModuleLocalization, ModuleSimple
Cycles a message through a list of frames so it appears animated.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordIdentifies one running animation, so each reader sees their own progress. -
Method Summary
Modifier and TypeMethodDescriptionaddTag(MessageContext messageContext) Registers the tag that renders an animation frame.config()The config section this module reads its settings from.intAdvances an animation to its next frame.localization(FPlayer fPlayer) The localization section for a player, picked from their chosen language.The permission that gates this module.Methods inherited from interface ModuleLocalization
cooldown, cooldownOrThrow, permissions, sound, soundOrThrow
-
Method Details
-
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
-
config
Message.Format.Animation 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.Animation permission()Description copied from interface:ModuleSimpleThe permission that gates this module.- Specified by:
permissionin interfaceModuleSimple- Returns:
- the permission
-
addTag
Registers the tag that renders an animation frame.- Parameters:
messageContext- the message being formatted- Returns:
- the context with the tag added
-
increment
Advances an animation to its next frame.- Parameters:
sender- who wrote the messagereceiver- who reads itanimation- the animation namemaxInterval- how many calls each frame lastsmaxIndex- how many frames there are- Returns:
- the frame to draw
-