mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 14:34:28 +00:00
Deprecate patched-in Style methods for removal, vanilla variants exist. (#8615)
This commit is contained in:
1 parent
ee46af66e5
commit
e4837f65a3
1 file changed
+13
-1
@@ -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_);
|
||||
+ }
|
||||
|
||||
Reference in new issue
Block a user