#804: Added methods to get translation keys for materials, itemstacks and more

By: mfnalex <mfnalex@gmail.com>
This commit is contained in:
Bukkit/Spigot
2023-02-10 20:51:15 +11:00
parent cd28159b45
commit e17edb7785
6 changed files with 92 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
package org.bukkit;
import org.jetbrains.annotations.NotNull;
/**
* Represents an object with a text representation that can be translated by the
* Minecraft client.
*/
public interface Translatable {
/**
* Get the translation key, suitable for use in a translation component.
*
* @return the translation key
*/
@NotNull
String getTranslationKey();
}