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