This commit is contained in:
Riley Park 2021-02-22 06:15:22 -08:00
parent 3effca65b6
commit aaf508e621
2 changed files with 4 additions and 2 deletions

View file

@ -2315,7 +2315,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
* @return The title. * @return The title.
*/ */
@NotNull @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 + // Paper end
+ +
+ /** + /**

View file

@ -17,4 +17,4 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ * @return The title or empty string when title is {@code null}. <!-- Paper --> + * @return The title or empty string when title is {@code null}. <!-- Paper -->
*/ */
@NotNull @NotNull
public abstract net.kyori.adventure.text.Component title(); public /*abstract*/ net.kyori.adventure.text.Component title() {