mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-24 22:14:32 +00:00
Properly move `ServerStatusPing` to codec Reimplement custom display contexts Co-authored-by: Matyrobbrt <[email protected]> Co-authored-by: coehlrich <[email protected]> Signed-off-by: SizableShrimp <[email protected]>
34 lines
949 B
Diff
34 lines
949 B
Diff
--- a/net/minecraft/client/gui/components/AbstractWidget.java
|
|
+++ b/net/minecraft/client/gui/components/AbstractWidget.java
|
|
@@ -231,6 +_,10 @@
|
|
this.f_93618_ = p_93675_;
|
|
}
|
|
|
|
+ public void setHeight(int value) {
|
|
+ this.f_93619_ = value;
|
|
+ }
|
|
+
|
|
public void m_93650_(float p_93651_) {
|
|
this.f_93625_ = p_93651_;
|
|
}
|
|
@@ -261,6 +_,19 @@
|
|
|
|
public void m_93692_(boolean p_93693_) {
|
|
this.f_93616_ = p_93693_;
|
|
+ }
|
|
+
|
|
+ public static final int UNSET_FG_COLOR = -1;
|
|
+ protected int packedFGColor = UNSET_FG_COLOR;
|
|
+ public int getFGColor() {
|
|
+ if (packedFGColor != UNSET_FG_COLOR) return packedFGColor;
|
|
+ return this.f_93623_ ? 16777215 : 10526880; // White : Light Grey
|
|
+ }
|
|
+ public void setFGColor(int color) {
|
|
+ this.packedFGColor = color;
|
|
+ }
|
|
+ public void clearFGColor() {
|
|
+ this.packedFGColor = UNSET_FG_COLOR;
|
|
}
|
|
|
|
public NarratableEntry.NarrationPriority m_142684_() {
|