Package net.kyori.adventure.title
Interface Title
- All Superinterfaces:
- net.kyori.examination.Examinable
@NonExtendable
public interface Title
extends net.kyori.examination.Examinable
Represents an in-game title, which can be displayed across the centre of the screen.
- Since:
- 4.0.0
- See Also:
- Title.Times
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceTitle.TimesTitle times.
- 
Field SummaryFields Modifier and Type Field Description static Title.TimesDEFAULT_TIMESThe default times.
- 
Method SummaryModifier and Type Method Description @NonNull Componentsubtitle()Gets the subtitle.@Nullable Title.Timestimes()Gets the times.@NonNull Componenttitle()Gets the title.static @NonNull Titletitle(@NonNull Component title, @NonNull Component subtitle)Creates a title.static @NonNull Titletitle(@NonNull Component title, @NonNull Component subtitle, @Nullable Title.Times times)Creates a title.Methods inherited from interface net.kyori.examination.ExaminableexaminableName, examinableProperties, examine
- 
Field Details- 
DEFAULT_TIMESThe default times.- Since:
- 4.0.0
 
 
- 
- 
Method Details- 
titleCreates a title.- Parameters:
- title- the title
- subtitle- the subtitle
- Returns:
- the title
- Since:
- 4.0.0
 
- 
titlestatic @NonNull Title title(@NonNull Component title, @NonNull Component subtitle, @Nullable Title.Times times)Creates a title.- Parameters:
- title- the title
- subtitle- the subtitle
- times- the times
- Returns:
- the title
- Since:
- 4.0.0
 
- 
title@NonNull Component title()Gets the title.- Returns:
- the title
- Since:
- 4.0.0
 
- 
subtitle@NonNull Component subtitle()Gets the subtitle.- Returns:
- the subtitle
- Since:
- 4.0.0
 
- 
times@Nullable Title.Times times()Gets the times.- Returns:
- the times
- Since:
- 4.0.0
 
 
-