Interface Title
public sealed interface Title
Represents an in-game title, which can be displayed across the centre of the screen.
- Since:
- 4.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<T> @UnknownNullability TGets a part.subtitle()Gets the subtitle.@Nullable Title.Timestimes()Gets the times.title()Gets the title.static TitleCreates a title.static TitleCreates a title.static Titletitle(Component title, Component subtitle, @Nullable Title.Times times) Creates a title.
-
Field Details
-
DEFAULT_TIMES
-
-
Method Details
-
title
-
title
Creates a title.- Parameters:
title- the titlesubtitle- the subtitletimes- the times- Returns:
- the title
- Since:
- 4.0.0
-
title
static Title title(Component title, Component subtitle, int fadeInTicks, int stayTicks, int fadeOutTicks) Creates a title.- Parameters:
title- the titlesubtitle- the subtitlefadeInTicks- duration in ticks that the title fades instayTicks- duration in ticks that the title stays on screenfadeOutTicks- duration in ticks that the title fades out- Returns:
- the title
- Since:
- 4.24.0
-
title
-
subtitle
-
times
-
part
Gets a part.- Type Parameters:
T- the type of the part- Parameters:
part- the part- Returns:
- the value
- Since:
- 4.9.0
-