From e4837f65a378d8ddcc41788c733e18d4ea6981c0 Mon Sep 17 00:00:00 2001 From: sciwhiz12 Date: Wed, 1 Jun 2022 01:38:25 +0800 Subject: [PATCH] Deprecate patched-in Style methods for removal, vanilla variants exist. (#8615) --- .../net/minecraft/network/chat/Style.java.patch | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/network/chat/Style.java.patch b/patches/minecraft/net/minecraft/network/chat/Style.java.patch index dbfb534199..68398e5934 100644 --- a/patches/minecraft/net/minecraft/network/chat/Style.java.patch +++ b/patches/minecraft/net/minecraft/network/chat/Style.java.patch @@ -1,17 +1,29 @@ --- a/net/minecraft/network/chat/Style.java +++ b/net/minecraft/network/chat/Style.java -@@ -133,6 +_,18 @@ +@@ -133,6 +_,30 @@ return new Style(this.f_131101_, this.f_131102_, this.f_131103_, this.f_131104_, this.f_131105_, p_178525_, this.f_131107_, this.f_131108_, this.f_131109_, this.f_131110_); } ++ /** ++ * @deprecated Use {@link #withUnderlined(Boolean)} instead. ++ */ ++ @Deprecated(forRemoval = true, since = "1.18.2") + public Style setUnderlined(@Nullable Boolean underlined) { + return new Style(this.f_131101_, this.f_131102_, this.f_131103_, underlined, this.f_131105_, this.f_131106_, this.f_131107_, this.f_131108_, this.f_131109_, this.f_131110_); + } + ++ /** ++ * @deprecated Use {@link #withStrikethrough(Boolean)} instead. ++ */ ++ @Deprecated(forRemoval = true, since = "1.18.2") + public Style setStrikethrough(@Nullable Boolean strikethrough) { + return new Style(this.f_131101_, this.f_131102_, this.f_131103_, this.f_131104_, strikethrough, this.f_131106_, this.f_131107_, this.f_131108_, this.f_131109_, this.f_131110_); + } + ++ /** ++ * @deprecated Use {@link #withObfuscated(Boolean)} instead. ++ */ ++ @Deprecated(forRemoval = true, since = "1.18.2") + public Style setObfuscated(@Nullable Boolean obfuscated) { + return new Style(this.f_131101_, this.f_131102_, this.f_131103_, this.f_131104_, this.f_131105_, obfuscated, this.f_131107_, this.f_131108_, this.f_131109_, this.f_131110_); + }