diff options
-rw-r--r-- | src/main/java/org/bukkit/inventory/meta/ItemMeta.java | 24 |
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 |