Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 11:00:06 +01:00
Expose EntityType#getTranslationKey
Dieser Commit ist enthalten in:
Ursprung
5c65546f5c
Commit
fdef125b19
@ -84,7 +84,7 @@ index 786b8011e98b2fe93cc2418d624f6350ede62d90..024deba760c41787190d20e4ac5c5419
|
||||
// Paper end
|
||||
}
|
||||
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
|
||||
+++ b/src/main/java/org/bukkit/entity/EntityType.java
|
||||
@@ -419,4 +419,15 @@ public enum EntityType implements Keyed {
|
||||
@ -99,7 +99,7 @@ index 9be5371c7f398d0ec8241403661415ff40661067..f415b61b0d4b57e1557aaf240a0f2ad5
|
||||
+ * @return the translation key
|
||||
+ */
|
||||
+ @Nullable
|
||||
+ String getTranslationKey() {
|
||||
+ public String getTranslationKey() {
|
||||
+ return org.bukkit.Bukkit.getUnsafe().getTranslationKey(this);
|
||||
+ }
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren