mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
#804: Added methods to get translation keys for materials, itemstacks and more
By: mfnalex <mfnalex@gmail.com>
This commit is contained in:
18
paper-api/src/main/java/org/bukkit/Translatable.java
Normal file
18
paper-api/src/main/java/org/bukkit/Translatable.java
Normal 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();
|
||||
}
|
Reference in New Issue
Block a user