Action Bar
Title
¶
Title(
title: str = "",
subtitle: str = "",
action_bar: str = "",
fade_in: int = 10,
stay: int = 70,
fade_out: int = 20,
)
Minecraft Title representation and state manager.
| ATTRIBUTE | DESCRIPTION |
|---|---|
title |
Current title text
TYPE:
|
subtitle |
Current subtitle text
TYPE:
|
action_bar |
Current action bar text
TYPE:
|
fade_in |
Fade in time in ticks
TYPE:
|
stay |
Stay time in ticks
TYPE:
|
fade_out |
Fade out time in ticks
TYPE:
|
visible |
Whether the title is currently visible
TYPE:
|
set_title
¶
set_title(title: str) -> None
Set the main title text.
| PARAMETER | DESCRIPTION |
|---|---|
title
|
The title text to display
TYPE:
|
set_subtitle
¶
set_subtitle(subtitle: str) -> None
Set the subtitle text.
| PARAMETER | DESCRIPTION |
|---|---|
subtitle
|
The subtitle text to display
TYPE:
|
set_action_bar
¶
set_action_bar(action_bar: str) -> None
Set the action bar text.
| PARAMETER | DESCRIPTION |
|---|---|
action_bar
|
The action bar text to display
TYPE:
|
set_times
¶
total_duration_ticks
¶
total_duration_ticks() -> int
Get total duration of title display in ticks.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Total duration (fade_in + stay + fade_out) |
total_duration_seconds
¶
total_duration_seconds() -> float
Get total duration of title display in seconds.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Total duration in seconds (20 ticks = 1 second) |