BossBarAPI | |
---|---|
![]() |
显示boss栏消息的API |
作 者 | inventivetalent |
发布时间 | 2015年5月27日 |
支持核心 | Spigot | 原生版本 |
支持版本 | 1.7,1.8,1.9,1.10 |
插件详细介绍
BossBarAPI 是一个允许你在 Minecraft 中显示 boss 战消息的插件。
以下是使用 Java 代码创建一个新的 BossBar 的示例:
//Create a new BossBar
BossBar bossBar = BossBarAPI.addBar(player, // The receiver of the BossBar
new TextComponent("Hi " + player.getName() + "!"), // Displayed message
BossBarAPI.Color.BLUE, // Color of the bar
BossBarAPI.Style.NOTCHED_20, // Bar style
1.0f, // Progress (0.0 - 1.0)
20, // Timeout
2); // Timeout-interval
如果你有依赖 BarAPI 的插件,可以安装这个插件替代它。然后这些插件将使用 BossBarAPI 的方法。
如果你喜欢这个资源,请留下评分。也非常感谢对我的或这个资源的捐赠支持。