summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJofkos <JofkosDE@gmail.com>2015-07-10 16:19:12 +1000
committermd_5 <git@md-5.net>2015-07-10 16:37:28 +1000
commit5ce44d45312122ecf210dbf614e125f72289f43f (patch)
treece4fd3d9afb5cd55abf5740d8373e0928b214754
parent35e31b809cff79449800c0b56e86cc194fa2f44c (diff)
downloadbukkit-5ce44d45312122ecf210dbf614e125f72289f43f.tar
bukkit-5ce44d45312122ecf210dbf614e125f72289f43f.tar.gz
bukkit-5ce44d45312122ecf210dbf614e125f72289f43f.tar.lz
bukkit-5ce44d45312122ecf210dbf614e125f72289f43f.tar.xz
bukkit-5ce44d45312122ecf210dbf614e125f72289f43f.zip
Add basic sendTitle / resetTitle API.
More APIs to follow pending feedback of whether this is the preferred implementation. Methods marked as deprecated and subject to change, but work as is.
-rw-r--r--src/main/java/org/bukkit/entity/Player.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
index 6b955e49..1b54b486 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
@@ -1055,4 +1055,25 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
* {@link GameMode#SPECTATOR}
*/
public void setSpectatorTarget(Entity entity);
+
+ /**
+ * Sends a title and a subtitle message to the player. If either of these
+ * values are null, they will not be sent and the display will remain
+ * unchanged. If they are empty strings, the display will be updated as
+ * such. If the strings contain a new line, only the first line will be
+ * sent.
+ *
+ * @param title Title text
+ * @param subtitle Subtitle text
+ * @deprecated API subject to change
+ */
+ @Deprecated
+ public void sendTitle(String title, String subtitle);
+
+ /**
+ * Resets the title displayed to the player.
+ * @deprecated API subject to change.
+ */
+ @Deprecated
+ public void resetTitle();
}