Record Class EarlyLoadingScreenController.WindowState
java.lang.Object
java.lang.Record
net.neoforged.fml.loading.EarlyLoadingScreenController.WindowState
- Record Components:
x- the horizontal screen coordinate of the windowy- the vertical screen coordinate of the windowwidth- the width of the window's content areaheight- the height of the window's content areaposValid- whetherxandycontain a valid window positionminimized- whether the window is minimized or iconifiedmaximized- whether the window is in the platform's maximized or zoomed statefullscreen- whether the window is in a platform fullscreen mode, distinct from maximization
- Enclosing interface:
EarlyLoadingScreenController
public static record EarlyLoadingScreenController.WindowState(int x, int y, int width, int height, boolean posValid, boolean minimized, boolean maximized, boolean fullscreen)
extends Record
A platform-independent snapshot of the early window's presentation state.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thefullscreenrecord component.private final intThe field for theheightrecord component.private final booleanThe field for themaximizedrecord component.private final booleanThe field for theminimizedrecord component.private final booleanThe field for theposValidrecord component.private final intThe field for thewidthrecord component.private final intThe field for thexrecord component.private final intThe field for theyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWindowState(int x, int y, int width, int height, boolean posValid, boolean minimized, boolean maximized, boolean fullscreen) Creates an instance of aWindowStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefullscreenrecord component.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.booleanReturns the value of themaximizedrecord component.booleanReturns the value of theminimizedrecord component.booleanposValid()Returns the value of theposValidrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Field Details
-
x
private final int xThe field for thexrecord component. -
y
private final int yThe field for theyrecord component. -
width
private final int widthThe field for thewidthrecord component. -
height
private final int heightThe field for theheightrecord component. -
posValid
private final boolean posValidThe field for theposValidrecord component. -
minimized
private final boolean minimizedThe field for theminimizedrecord component. -
maximized
private final boolean maximizedThe field for themaximizedrecord component. -
fullscreen
private final boolean fullscreenThe field for thefullscreenrecord component.
-
-
Constructor Details
-
WindowState
public WindowState(int x, int y, int width, int height, boolean posValid, boolean minimized, boolean maximized, boolean fullscreen) Creates an instance of aWindowStaterecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentposValid- the value for theposValidrecord componentminimized- the value for theminimizedrecord componentmaximized- the value for themaximizedrecord componentfullscreen- the value for thefullscreenrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
x
-
y
-
width
-
height
-
posValid
-
minimized
-
maximized
-
fullscreen
public boolean fullscreen()Returns the value of thefullscreenrecord component.- Returns:
- the value of the
fullscreenrecord component
-