13
0
geforkt von Mirrors/Paper
Dieser Commit ist enthalten in:
Riley Park 2021-02-22 06:15:22 -08:00
Ursprung 0f2575de29
Commit d23f8b62ef
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: D831AF236C834E45
2 geänderte Dateien mit 7 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -2301,10 +2301,10 @@ index 7a2a58bac8e721c3f0c64f69f77be07a51f76d58..29c5bd1f522310def76bf7b46a5b6146
/**
diff --git a/src/main/java/org/bukkit/inventory/InventoryView.java b/src/main/java/org/bukkit/inventory/InventoryView.java
index 14346d83bc99581b18e53d19af03708c0bf22cf7..b6cbf23dd40fb1cb1fec3c7d6918438ebf5bcc2e 100644
index 14346d83bc99581b18e53d19af03708c0bf22cf7..a4e3d526db2d17dc923cbe82e53d3c902d61e1f3 100644
--- a/src/main/java/org/bukkit/inventory/InventoryView.java
+++ b/src/main/java/org/bukkit/inventory/InventoryView.java
@@ -446,11 +446,23 @@ public abstract class InventoryView {
@@ -446,11 +446,25 @@ public abstract class InventoryView {
return getPlayer().setWindowProperty(prop, value);
}
@ -2315,7 +2315,9 @@ index 14346d83bc99581b18e53d19af03708c0bf22cf7..b6cbf23dd40fb1cb1fec3c7d6918438e
* @return The title.
*/
@NotNull
+ public abstract net.kyori.adventure.text.Component title();
+ public /*abstract*/ net.kyori.adventure.text.Component title() {
+ return net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(this.getTitle());
+ }
+ // Paper end
+
+ /**

Datei anzeigen

@ -6,7 +6,7 @@ Subject: [PATCH] Return chat component with empty text instead of throwing
diff --git a/src/main/java/org/bukkit/inventory/InventoryView.java b/src/main/java/org/bukkit/inventory/InventoryView.java
index b6cbf23dd40fb1cb1fec3c7d6918438ebf5bcc2e..0c6d8172bea4c0aa6083259d31826a0a774b78c3 100644
index a4e3d526db2d17dc923cbe82e53d3c902d61e1f3..2448e70d75ae7a678c6befac4506c103edb78875 100644
--- a/src/main/java/org/bukkit/inventory/InventoryView.java
+++ b/src/main/java/org/bukkit/inventory/InventoryView.java
@@ -450,7 +450,7 @@ public abstract class InventoryView {
@ -17,4 +17,4 @@ index b6cbf23dd40fb1cb1fec3c7d6918438ebf5bcc2e..0c6d8172bea4c0aa6083259d31826a0a
+ * @return The title or empty string when title is {@code null}. <!-- Paper -->
*/
@NotNull
public abstract net.kyori.adventure.text.Component title();
public /*abstract*/ net.kyori.adventure.text.Component title() {