Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
@NotNull Title |
build()
Create a title based on the values in the builder.
|
@NotNull Title.Builder |
fadeIn(int fadeIn)
Sets the number of ticks for the title to fade in
|
@NotNull Title.Builder |
fadeOut(int fadeOut)
Sets the number of ticks for the title to fade out.
|
@NotNull Title.Builder |
stay(int stay)
Sets the number of ticks for the title to stay.
|
@NotNull Title.Builder |
subtitle(@Nullable BaseComponent subtitle)
Sets the subtitle to the given text.
|
@NotNull Title.Builder |
subtitle(@Nullable BaseComponent[] subtitle)
Sets the subtitle to the given text.
|
@NotNull Title.Builder |
subtitle(@Nullable String subtitle)
Sets the subtitle to the given text.
|
@NotNull Title.Builder |
title(@NotNull BaseComponent title)
Sets the title to the given text.
|
@NotNull Title.Builder |
title(@NotNull BaseComponent[] title)
Sets the title to the given text.
|
@NotNull Title.Builder |
title(@NotNull String title)
Sets the title to the given text.
|
@NotNull public @NotNull Title.Builder title(@NotNull @NotNull BaseComponent title)
title
- the title textNullPointerException
- if the title is null@NotNull public @NotNull Title.Builder title(@NotNull @NotNull BaseComponent[] title)
title
- the title textNullPointerException
- if the title is null@NotNull public @NotNull Title.Builder title(@NotNull @NotNull String title)
It is recommended to the BaseComponent
methods.
title
- the title textNullPointerException
- if the title is null@NotNull public @NotNull Title.Builder subtitle(@Nullable @Nullable BaseComponent subtitle)
subtitle
- the title text@NotNull public @NotNull Title.Builder subtitle(@Nullable @Nullable BaseComponent[] subtitle)
subtitle
- the title text@NotNull public @NotNull Title.Builder subtitle(@Nullable @Nullable String subtitle)
It is recommended to the BaseComponent
methods.
subtitle
- the title text@NotNull public @NotNull Title.Builder fadeIn(int fadeIn)
fadeIn
- the number of ticks to fade inIllegalArgumentException
- if it is negative@NotNull public @NotNull Title.Builder stay(int stay)
stay
- the number of ticks to stayIllegalArgumentException
- if it is negative@NotNull public @NotNull Title.Builder fadeOut(int fadeOut)
fadeOut
- the number of ticks to fade outIllegalArgumentException
- if it is negative@NotNull public @NotNull Title build()
IllegalStateException
- if title isn't specifiedCopyright © 2021. All rights reserved.