summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-02-16 11:49:26 +1100
committermd_5 <git@md-5.net>2017-02-16 11:49:26 +1100
commitc0827f5df70b84ed701663598a2c4accc4bbf075 (patch)
treee31e6128f856385b8462cbe6e7e0280275bff8f8 /src/main
parentba3e9b43b2db4869061a50014dc01501f5a24fd3 (diff)
downloadbukkit-c0827f5df70b84ed701663598a2c4accc4bbf075.tar
bukkit-c0827f5df70b84ed701663598a2c4accc4bbf075.tar.gz
bukkit-c0827f5df70b84ed701663598a2c4accc4bbf075.tar.lz
bukkit-c0827f5df70b84ed701663598a2c4accc4bbf075.tar.xz
bukkit-c0827f5df70b84ed701663598a2c4accc4bbf075.zip
SPIGOT-3068: API for localized item names
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/inventory/meta/ItemMeta.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/inventory/meta/ItemMeta.java b/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
index fa3efe36..37d2e49e 100644
--- a/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
+++ b/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
@@ -41,6 +41,30 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable {
void setDisplayName(String name);
/**
+ * Checks for existence of a localized name.
+ *
+ * @return true if this has a localized name
+ */
+ boolean hasLocalizedName();
+
+ /**
+ * Gets the localized display name that is set.
+ * <p>
+ * Plugins should check that hasLocalizedName() returns <code>true</code>
+ * before calling this method.
+ *
+ * @return the localized name that is set
+ */
+ String getLocalizedName();
+
+ /**
+ * Sets the localized name.
+ *
+ * @param name the name to set
+ */
+ void setLocalizedName(String name);
+
+ /**
* Checks for existence of lore.
*
* @return true if this has lore