77import com .cleanroommc .modularui .utils .Interpolations ;
88import com .cleanroommc .modularui .utils .MathUtils ;
99
10+ import org .jetbrains .annotations .ApiStatus ;
11+
1012import java .awt .*;
1113import java .awt .geom .Rectangle2D ;
1214import java .util .Objects ;
@@ -30,10 +32,6 @@ public static boolean isInside(int x, int y, int w, int h, int px, int py) {
3032 * relative position (in most cases the direct parent)
3133 */
3234 public int rx , ry ;
33- /**
34- * each panel has its own layer
35- */
36- private byte panelLayer = 0 ;
3735 /**
3836 * the widget layer within this panel
3937 */
@@ -55,7 +53,6 @@ public Area(Area area) {
5553 super (area );
5654 this .rx = area .rx ;
5755 this .ry = area .ry ;
58- this .panelLayer = area .panelLayer ;
5956 this .z = area .z ;
6057 getMargin ().set (area .getMargin ());
6158 getPadding ().set (area .getPadding ());
@@ -125,13 +122,15 @@ public void z(int z) {
125122 this .z = z ;
126123 }
127124
125+ @ ApiStatus .ScheduledForRemoval (inVersion = "3.2.0" )
126+ @ Deprecated
128127 public byte getPanelLayer () {
129- return this . panelLayer ;
128+ return 0 ;
130129 }
131130
132- public void setPanelLayer ( byte panelLayer ) {
133- this . panelLayer = panelLayer ;
134- }
131+ @ ApiStatus . ScheduledForRemoval ( inVersion = "3.2.0" )
132+ @ Deprecated
133+ public void setPanelLayer ( byte panelLayer ) { }
135134
136135 /**
137136 * Calculate X based on anchor value
@@ -557,13 +556,13 @@ public boolean equals(Object o) {
557556 if (o == null || getClass () != o .getClass ()) return false ;
558557 if (!super .equals (o )) return false ;
559558 Area area = (Area ) o ;
560- return rx == area .rx && ry == area .ry && panelLayer == area . panelLayer && z == area .z && Objects .equals (getMargin (),
559+ return rx == area .rx && ry == area .ry && z == area .z && Objects .equals (getMargin (),
561560 area .getMargin ()) && Objects .equals (
562561 getPadding (), area .getPadding ());
563562 }
564563
565564 @ Override
566565 public int hashCode () {
567- return Objects .hash (super .hashCode (), rx , ry , panelLayer , z , getMargin (), getPadding ());
566+ return Objects .hash (super .hashCode (), rx , ry , z , getMargin (), getPadding ());
568567 }
569568}
0 commit comments