Implement BossBar API
By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
2e3099f3cf
commit
b54073a1e1
5 changed files with 196 additions and 0 deletions
|
@ -13,6 +13,10 @@ import java.util.UUID;
|
|||
import java.util.logging.Logger;
|
||||
|
||||
import org.bukkit.Warning.WarningState;
|
||||
import org.bukkit.boss.BarColor;
|
||||
import org.bukkit.boss.BarFlag;
|
||||
import org.bukkit.boss.BarStyle;
|
||||
import org.bukkit.boss.BossBar;
|
||||
import org.bukkit.command.CommandException;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.command.ConsoleCommandSender;
|
||||
|
@ -1130,6 +1134,20 @@ public final class Bukkit {
|
|||
return server.createChunkData(world);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a boss bar instance to display to players. The progress
|
||||
* defaults to 1.0
|
||||
*
|
||||
* @param title the title of the boss bar
|
||||
* @param color the color of the boss bar
|
||||
* @param style the style of the boss bar
|
||||
* @param flags an optional list of flags to set on the boss bar
|
||||
* @return the created boss bar
|
||||
*/
|
||||
public static BossBar createBossBar(String title, BarColor color, BarStyle style, BarFlag... flags) {
|
||||
return server.createBossBar(title, color, style, flags);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see UnsafeValues
|
||||
* @return the unsafe values instance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue