Add API to manipulate boss bar of entities and those created by commands

By: Yannick Lamprecht <yannicklamprecht@live.de>
This commit is contained in:
Bukkit/Spigot
2018-11-10 20:22:05 +11:00
parent 905e0f7cac
commit 4782571b82
6 changed files with 169 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
package org.bukkit.entity;
import org.bukkit.boss.BossBar;
/**
* Represents the Boss Entity.
*/
public interface Boss extends Entity {
/**
* Returns the {@link BossBar} of the {@link Boss}
*
* @return the {@link BossBar} of the entity
*/
BossBar getBossBar();
}

View File

@@ -3,7 +3,7 @@ package org.bukkit.entity;
/**
* Represents an Ender Dragon
*/
public interface EnderDragon extends ComplexLivingEntity {
public interface EnderDragon extends ComplexLivingEntity, Boss {
/**
* Represents a phase or action that an Ender Dragon can perform.

View File

@@ -3,5 +3,5 @@ package org.bukkit.entity;
/**
* Represents a Wither boss
*/
public interface Wither extends Monster {
public interface Wither extends Monster, Boss {
}