From c24b67355076d717e36f8650207764fcff4d113e Mon Sep 17 00:00:00 2001 From: Mats Date: Tue, 8 Mar 2016 13:46:30 +0100 Subject: [PATCH 1/2] Add removed bossbar methods --- .../us/myles/ViaVersion/api/boss/BossBar.java | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/main/java/us/myles/ViaVersion/api/boss/BossBar.java b/src/main/java/us/myles/ViaVersion/api/boss/BossBar.java index 58ccf9020..da9010cd6 100644 --- a/src/main/java/us/myles/ViaVersion/api/boss/BossBar.java +++ b/src/main/java/us/myles/ViaVersion/api/boss/BossBar.java @@ -13,6 +13,13 @@ public interface BossBar { */ void setTitle(String title); + /** + * Get the current title + * + * @return the title + */ + String getTitle(); + /** * Change the health * @@ -21,11 +28,11 @@ public interface BossBar { void setHealth(float health); /** - * Get the bossbar color + * Get the health * - * @return + * @return float between 0F - 1F */ - BossColor getColor(); + float getHealth(); /** * Yay colors! @@ -34,6 +41,13 @@ public interface BossBar { */ void setColor(BossColor color); + /** + * Get the bossbar color + * + * @return + */ + BossColor getColor(); + /** * Change the bosbar style * @@ -41,6 +55,13 @@ public interface BossBar { */ void setStyle(BossStyle style); + /** + * Get the bosbar style + * + * @return BossStyle + */ + BossStyle getStyle(); + /** * Show the bossbar to a player. * From bf5072e1cf2a26fd6e6217ad03b85cf818cc13c8 Mon Sep 17 00:00:00 2001 From: Mats Date: Tue, 8 Mar 2016 13:46:30 +0100 Subject: [PATCH 2/2] Add removed bossbar methods --- .../us/myles/ViaVersion/api/boss/BossBar.java | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/main/java/us/myles/ViaVersion/api/boss/BossBar.java b/src/main/java/us/myles/ViaVersion/api/boss/BossBar.java index 58ccf9020..da9010cd6 100644 --- a/src/main/java/us/myles/ViaVersion/api/boss/BossBar.java +++ b/src/main/java/us/myles/ViaVersion/api/boss/BossBar.java @@ -13,6 +13,13 @@ public interface BossBar { */ void setTitle(String title); + /** + * Get the current title + * + * @return the title + */ + String getTitle(); + /** * Change the health * @@ -21,11 +28,11 @@ public interface BossBar { void setHealth(float health); /** - * Get the bossbar color + * Get the health * - * @return + * @return float between 0F - 1F */ - BossColor getColor(); + float getHealth(); /** * Yay colors! @@ -34,6 +41,13 @@ public interface BossBar { */ void setColor(BossColor color); + /** + * Get the bossbar color + * + * @return + */ + BossColor getColor(); + /** * Change the bosbar style * @@ -41,6 +55,13 @@ public interface BossBar { */ void setStyle(BossStyle style); + /** + * Get the bosbar style + * + * @return BossStyle + */ + BossStyle getStyle(); + /** * Show the bossbar to a player. *