public interface Title
fadeIn(int)
, stay(int)
,
and fadeOut(int)
for a specified amount of time. In most cases you
will want to reset()
the current title first so your title won't be
affected by a previous one.
You can create a new configuration by calling
ProxyServer.createTitle()
.
Modifier and Type | Method and Description |
---|---|
Title |
clear()
Remove the currently displayed title from the player's screen.
|
Title |
fadeIn(int ticks)
Set the duration in ticks of the fade in effect of the title.
|
Title |
fadeOut(int ticks)
Set the duration in ticks of the fade out effect of the title.
|
Title |
reset()
Remove the currently displayed title from the player's screen and set the
configuration back to the default values.
|
Title |
send(ProxiedPlayer player)
Send this title configuration to the specified player.
|
Title |
stay(int ticks)
Set the duration in ticks how long the title should stay on the screen.
|
Title |
subTitle(BaseComponent... text)
Set the subtitle to send to the player.
|
Title |
subTitle(BaseComponent text)
Set the subtitle to send to the player.
|
Title |
title(BaseComponent... text)
Set the title to send to the player.
|
Title |
title(BaseComponent text)
Set the title to send to the player.
|
Title title(BaseComponent text)
text
- The text to use as the title.Title title(BaseComponent... text)
text
- The text to use as the title.Title subTitle(BaseComponent text)
text
- The text to use as the subtitle.Title subTitle(BaseComponent... text)
text
- The text to use as the subtitle.Title fadeIn(int ticks)
stay(int)
. The default value for the official
Minecraft version is 20 (1 second).ticks
- The amount of ticks (1/20 second) for the fade in effect.Title stay(int ticks)
fadeOut(int)
. The default value for the
official Minecraft version is 60 (3 seconds).ticks
- The amount of ticks (1/20 second) for the stay effect.Title fadeOut(int ticks)
ticks
- The amount of ticks (1/20 second) for the fade out effect.Title clear()
Title reset()
Title send(ProxiedPlayer player)
ProxiedPlayer.sendTitle(Title)
.player
- The player to send the title to.Copyright © 2012–2020 SpigotMC. All rights reserved.