枚举的使用
org.bukkit.boss.BarColor
使用BarColor的程序包
-
org.bukkit中BarColor的使用
参数类型为BarColor的org.bukkit中的方法修饰符和类型方法说明static @NotNull KeyedBossBar
Bukkit.createBossBar
(@NotNull NamespacedKey key, @Nullable String title, @NotNull BarColor color, @NotNull BarStyle style, @NotNull BarFlag... flags) 创建一个Boss血量条实例.Bukkit.createBossBar
(@Nullable String title, @NotNull BarColor color, @NotNull BarStyle style, @NotNull BarFlag... flags) 创建一个Boss血量条实例.Server.createBossBar
(@NotNull NamespacedKey key, @Nullable String title, @NotNull BarColor color, @NotNull BarStyle style, @NotNull BarFlag... flags) 创建一个Boss血量条实例.Server.createBossBar
(@Nullable String title, @NotNull BarColor color, @NotNull BarStyle style, @NotNull BarFlag... flags) 创建一个Boss血量条实例. -
org.bukkit.boss中BarColor的使用
返回BarColor的org.bukkit.boss中的方法修饰符和类型方法说明BossBar.getColor()
获取这个boss血条的颜色.static BarColor
返回带有指定名称的该类型的枚举常量。static BarColor[]
BarColor.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。参数类型为BarColor的org.bukkit.boss中的方法