Contents
Class EventTitleConfig
java.lang.Object
com.hypixel.hytale.server.core.util.EventTitleConfig
Authored options for an event title. Callers display it through
EventTitleUtil.-
Field Details
-
CODEC
-
-
Constructor Details
-
EventTitleConfig
public EventTitleConfig()
-
-
Method Details
-
getPrimaryTitle
- Returns:
- the main line of the title, or
nullif it has not been set.
-
getSecondaryTitle
- Returns:
- the line below the primary title.
-
getStyle
- Returns:
- the
EventTitleStylethe client uses to present the title.
-
getIcon
- Returns:
- the icon shown beside the title, or
nullfor 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
- Returns:
- the sound event played when the title is shown, or
nullfor a title with no sound.
-
getTotalDurationS
public float getTotalDurationS()- Returns:
- the time in seconds from fade in start until fade out end.
-
toString
-