Package com.destroystokyo.paper
Class Title.Builder
java.lang.Object
com.destroystokyo.paper.Title.Builder
- Enclosing class:
- Title
A builder for creating titles
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Create a title based on the values in the builder.fadeIn(int fadeIn) Sets the number of ticks for the title to fade infadeOut(int fadeOut) Sets the number of ticks for the title to fade out.stay(int stay) Sets the number of ticks for the title to stay.Sets the subtitle to the given text.Sets the subtitle to the given text.Sets the subtitle to the given text.Sets the title to the given text.Sets the title to the given text.Sets the title to the given text.
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
title@NotNull public @NotNull Title.Builder title(@NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent title) Sets the title to the given text.- Parameters:
- title- the title text
- Returns:
- this builder instance
- Throws:
- NullPointerException- if the title is null
 
- 
title@NotNull public @NotNull Title.Builder title(@NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent[] title) Sets the title to the given text.- Parameters:
- title- the title text
- Returns:
- this builder instance
- Throws:
- NullPointerException- if the title is null
 
- 
titleSets the title to the given text.It is recommended to the BaseComponentmethods.- Parameters:
- title- the title text
- Returns:
- this builder instance
- Throws:
- NullPointerException- if the title is null
 
- 
subtitle@NotNull public @NotNull Title.Builder subtitle(@Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent subtitle) Sets the subtitle to the given text.- Parameters:
- subtitle- the title text
- Returns:
- this builder instance
 
- 
subtitle@NotNull public @NotNull Title.Builder subtitle(@Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent[] subtitle) Sets the subtitle to the given text.- Parameters:
- subtitle- the title text
- Returns:
- this builder instance
 
- 
subtitleSets the subtitle to the given text.It is recommended to the BaseComponentmethods.- Parameters:
- subtitle- the title text
- Returns:
- this builder instance
 
- 
fadeInSets the number of ticks for the title to fade in- Parameters:
- fadeIn- the number of ticks to fade in
- Returns:
- this builder instance
- Throws:
- IllegalArgumentException- if it is negative
 
- 
staySets the number of ticks for the title to stay.- Parameters:
- stay- the number of ticks to stay
- Returns:
- this builder instance
- Throws:
- IllegalArgumentException- if it is negative
 
- 
fadeOutSets the number of ticks for the title to fade out.- Parameters:
- fadeOut- the number of ticks to fade out
- Returns:
- this builder instance
- Throws:
- IllegalArgumentException- if it is negative
 
- 
buildCreate a title based on the values in the builder.- Returns:
- a title from the values in this builder
- Throws:
- IllegalStateException- if title isn't specified
 
 
-