Expose EntityType#getTranslationKey

This commit is contained in:
Shane Freeder 2021-08-11 06:12:57 +00:00
parent 5c65546f5c
commit fdef125b19
No known key found for this signature in database
GPG Key ID: A3F61EA5A085289C

View File

@ -84,7 +84,7 @@ index 786b8011e98b2fe93cc2418d624f6350ede62d90..024deba760c41787190d20e4ac5c5419
// Paper end // Paper end
} }
diff --git a/src/main/java/org/bukkit/entity/EntityType.java b/src/main/java/org/bukkit/entity/EntityType.java diff --git a/src/main/java/org/bukkit/entity/EntityType.java b/src/main/java/org/bukkit/entity/EntityType.java
index 9be5371c7f398d0ec8241403661415ff40661067..f415b61b0d4b57e1557aaf240a0f2ad5915035fc 100644 index 9be5371c7f398d0ec8241403661415ff40661067..99b0ed0a30846a2d744265ea8f279da90b31fa37 100644
--- a/src/main/java/org/bukkit/entity/EntityType.java --- a/src/main/java/org/bukkit/entity/EntityType.java
+++ b/src/main/java/org/bukkit/entity/EntityType.java +++ b/src/main/java/org/bukkit/entity/EntityType.java
@@ -419,4 +419,15 @@ public enum EntityType implements Keyed { @@ -419,4 +419,15 @@ public enum EntityType implements Keyed {
@ -99,7 +99,7 @@ index 9be5371c7f398d0ec8241403661415ff40661067..f415b61b0d4b57e1557aaf240a0f2ad5
+ * @return the translation key + * @return the translation key
+ */ + */
+ @Nullable + @Nullable
+ String getTranslationKey() { + public String getTranslationKey() {
+ return org.bukkit.Bukkit.getUnsafe().getTranslationKey(this); + return org.bukkit.Bukkit.getUnsafe().getTranslationKey(this);
+ } + }
} }