mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 21:52:05 -07:00
Add definitions for Minecraft 1.9 gameplay elements
Includes an API for AreaEffectCloud and rework of Sound enum to include new sound values. By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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;
|
||||
@@ -926,6 +930,18 @@ public interface Server extends PluginMessageRecipient {
|
||||
*/
|
||||
public ChunkGenerator.ChunkData createChunkData(World 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
|
||||
*/
|
||||
BossBar createBossBar(String title, BarColor color, BarStyle style, BarFlag ...flags);
|
||||
|
||||
/**
|
||||
* @see UnsafeValues
|
||||
* @return the unsafe values instance
|
||||
|
Reference in New Issue
Block a user