summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/Nameable.java
diff options
context:
space:
mode:
authorSenmori <thesenmori@gmail.com>2016-11-18 11:24:16 +1100
committermd_5 <git@md-5.net>2016-11-18 11:24:16 +1100
commitda81c56cee19f4ad6d9676682a8a43c83481e5a7 (patch)
tree374e0eeeb77133758d0368aced261f111b9fb531 /src/main/java/org/bukkit/Nameable.java
parent84845e07fe6b11376f21b02296522f9ae870b899 (diff)
downloadbukkit-da81c56cee19f4ad6d9676682a8a43c83481e5a7.tar
bukkit-da81c56cee19f4ad6d9676682a8a43c83481e5a7.tar.gz
bukkit-da81c56cee19f4ad6d9676682a8a43c83481e5a7.tar.lz
bukkit-da81c56cee19f4ad6d9676682a8a43c83481e5a7.tar.xz
bukkit-da81c56cee19f4ad6d9676682a8a43c83481e5a7.zip
Get Colors from ShulkerBox; Implement CustomName for Tiles.
Diffstat (limited to 'src/main/java/org/bukkit/Nameable.java')
-rw-r--r--src/main/java/org/bukkit/Nameable.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Nameable.java b/src/main/java/org/bukkit/Nameable.java
new file mode 100644
index 00000000..49cf519c
--- /dev/null
+++ b/src/main/java/org/bukkit/Nameable.java
@@ -0,0 +1,28 @@
+package org.bukkit;
+
+public interface Nameable {
+
+ /**
+ * Gets the custom name on a mob or block. If there is no name this method
+ * will return null.
+ * <p>
+ * This value has no effect on players, they will always use their real
+ * name.
+ *
+ * @return name of the mob/block or null
+ */
+ public String getCustomName();
+
+ /**
+ * Sets a custom name on a mob or block. This name will be used in death
+ * messages and can be sent to the client as a nameplate over the mob.
+ * <p>
+ * Setting the name to null or an empty string will clear it.
+ * <p>
+ * This value has no effect on players, they will always use their real
+ * name.
+ *
+ * @param name the name to set
+ */
+ public void setCustomName(String name);
+}