mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
SPIGOT-3068: API for localized item names
This commit is contained in:
parent
ba3e9b43b2
commit
c0827f5df7
1 changed files with 24 additions and 0 deletions
|
@ -40,6 +40,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.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue