Interface AnimationModule

All Superinterfaces:
ModuleLocalization, ModuleSimple

public interface AnimationModule extends ModuleLocalization
Cycles a message through a list of frames so it appears animated.
  • Method Details

    • localization

      Description copied from interface: ModuleLocalization
      The localization section for a player, picked from their chosen language.
      Specified by:
      localization in interface ModuleLocalization
      Parameters:
      fPlayer - the player the text is for
      Returns:
      the localization settings
    • config

      Description copied from interface: ModuleSimple
      The config section this module reads its settings from.
      Specified by:
      config in interface ModuleSimple
      Returns:
      the settings
    • permission

      Description copied from interface: ModuleSimple
      The permission that gates this module.
      Specified by:
      permission in interface ModuleSimple
      Returns:
      the permission
    • addTag

      MessageContext addTag(MessageContext messageContext)
      Registers the tag that renders an animation frame.
      Parameters:
      messageContext - the message being formatted
      Returns:
      the context with the tag added
    • increment

      int increment(UUID sender, UUID receiver, String animation, int maxInterval, int maxIndex)
      Advances an animation to its next frame.
      Parameters:
      sender - who wrote the message
      receiver - who reads it
      animation - the animation name
      maxInterval - how many calls each frame lasts
      maxIndex - how many frames there are
      Returns:
      the frame to draw