Class EventTitleConfig

java.lang.Object
com.hypixel.hytale.server.core.util.EventTitleConfig

public class EventTitleConfig extends Object
Authored options for an event title. Callers display it through EventTitleUtil.
  • Field Details

  • Constructor Details

    • EventTitleConfig

      public EventTitleConfig()
  • Method Details

    • getPrimaryTitle

      @Nonnull public Message getPrimaryTitle()
      Returns:
      the main line of the title, or null if it has not been set.
    • getSecondaryTitle

      @Nullable public Message getSecondaryTitle()
      Returns:
      the line below the primary title.
    • getStyle

      @Nonnull public EventTitleStyle getStyle()
      Returns:
      the EventTitleStyle the client uses to present the title.
    • getIcon

      @Nullable public String getIcon()
      Returns:
      the icon shown beside the title, or null for a title with no icon.
    • getDurationS

      public float getDurationS()
      Returns:
      the time in seconds the title stays on screen, after the fade in.
    • getFadeInDurationS

      public float getFadeInDurationS()
      Returns:
      the time in seconds the title takes to fade in.
    • getFadeOutDurationS

      public float getFadeOutDurationS()
      Returns:
      the time in seconds the title takes to fade out.
    • getSoundEventId

      @Nullable public String getSoundEventId()
      Returns:
      the sound event played when the title is shown, or null for a title with no sound.
    • getTotalDurationS

      public float getTotalDurationS()
      Returns:
      the time in seconds from fade in start until fade out end.
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object