public class TitleUtil
extends java.lang.Object
Constructor and Description |
---|
TitleUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areTitlesSupported()
Returns whether titles are supported on the current server.
|
static void |
sendSubtitle(org.bukkit.entity.Player player,
java.lang.String subtitle,
org.bukkit.ChatColor color)
Sends a subtitle to a player if one is already displaying; otherwise sets
the subtitle to display when a title is next sent.
|
static void |
sendTimes(org.bukkit.entity.Player player,
int fadeIn,
int stay,
int fadeOut)
Sets the timing for the current title if one is displayinmg; otherwise
sets the timing for the next title sent.
|
static void |
sendTitle(org.bukkit.entity.Player player,
java.lang.String title,
org.bukkit.ChatColor color)
Sends a title to a player.
|
static void |
sendTitle(org.bukkit.entity.Player player,
java.lang.String title,
org.bukkit.ChatColor titleColor,
int fadeIn,
int stay,
int fadeOut)
Sends a title and subtitle with the given timing to a player.
|
static void |
sendTitle(org.bukkit.entity.Player player,
java.lang.String title,
org.bukkit.ChatColor titleColor,
java.lang.String subtitle,
org.bukkit.ChatColor subColor)
Sends a title and subtitle to a player.
|
static void |
sendTitle(org.bukkit.entity.Player player,
java.lang.String title,
org.bukkit.ChatColor titleColor,
java.lang.String subtitle,
org.bukkit.ChatColor subColor,
int fadeIn,
int stay,
int fadeOut)
Sends a title and subtitle with the given timing to a player.
|
public static boolean areTitlesSupported()
public static void sendTitle(org.bukkit.entity.Player player, java.lang.String title, org.bukkit.ChatColor color)
player
- the player to send the title totitle
- the content of the titlecolor
- the color of the titlepublic static void sendSubtitle(org.bukkit.entity.Player player, java.lang.String subtitle, org.bukkit.ChatColor color)
player
- the player to send the subtitle tosubtitle
- the content of the subtitlecolor
- the color of the subtitlepublic static void sendTimes(org.bukkit.entity.Player player, int fadeIn, int stay, int fadeOut)
player
- the player to set title timing forfadeIn
- the time in ticks the title should fade in over (default
20)stay
- the time in ticks the title should remain on the screen for
between fades (default 60)fadeOut
- the time in ticks the title should fade out over (default
20)public static void sendTitle(org.bukkit.entity.Player player, java.lang.String title, org.bukkit.ChatColor titleColor, java.lang.String subtitle, org.bukkit.ChatColor subColor)
player
- the player to send the title totitle
- the content of the titletitleColor
- the color of the titlesubtitle
- the content of the subtitlesubColor
- the color of the subtitlepublic static void sendTitle(org.bukkit.entity.Player player, java.lang.String title, org.bukkit.ChatColor titleColor, java.lang.String subtitle, org.bukkit.ChatColor subColor, int fadeIn, int stay, int fadeOut)
player
- the player to send the title totitle
- the content of the titletitleColor
- the color of the titlesubtitle
- the content of the subtitlesubColor
- the color of the subtitlefadeIn
- the time in ticks the title should fade in over (default
20)stay
- the time in ticks the title should remain on the screen for
between fades (default 60)fadeOut
- the time in ticks the title should fade out over (default
20)public static void sendTitle(org.bukkit.entity.Player player, java.lang.String title, org.bukkit.ChatColor titleColor, int fadeIn, int stay, int fadeOut)
player
- the player to send the title totitle
- the content of the titletitleColor
- the color of the titlefadeIn
- the time in ticks the title should fade in over (default
20)stay
- the time in ticks the title should remain on the screen for
between fades (default 60)fadeOut
- the time in ticks the title should fade out over (default
20)