Package net.minecraft.client
Record Class WindowSettings
java.lang.Object
java.lang.Record
net.minecraft.client.WindowSettings
- Record Components:
width-height-fullscreenWidth-fullscreenHeight-fullscreen-
@Environment(CLIENT)
public record WindowSettings(int width, int height, OptionalInt fullscreenWidth, OptionalInt fullscreenHeight, boolean fullscreen)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/WindowSettingsintermediary net/minecraft/class_543official fsqnamed widthintermediary comp_3494official anamed heightintermediary comp_3495official bnamed fullscreenWidthintermediary comp_3496official cnamed fullscreenHeightintermediary comp_3497official dnamed fullscreenintermediary comp_3498official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thefullscreenrecord component.private final OptionalIntThe field for thefullscreenHeightrecord component.private final OptionalIntThe field for thefullscreenWidthrecord component.private final intThe field for theheightrecord component.private final intThe field for thewidthrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWindowSettings(int width, int height, OptionalInt fullscreenWidth, OptionalInt fullscreenHeight, boolean fullscreen) Creates an instance of aWindowSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefullscreenrecord component.Returns the value of thefullscreenHeightrecord component.Returns the value of thefullscreenWidthrecord component.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.withDimensions(int width, int height) withFullscreen(boolean fullscreen)
-
Field Details
-
width
private final int widthThe field for thewidthrecord component. -
height
private final int heightThe field for theheightrecord component. -
fullscreenWidth
The field for thefullscreenWidthrecord component. -
fullscreenHeight
The field for thefullscreenHeightrecord component. -
fullscreen
private final boolean fullscreenThe field for thefullscreenrecord component.
-
-
Constructor Details
-
WindowSettings
public WindowSettings(int width, int height, OptionalInt fullscreenWidth, OptionalInt fullscreenHeight, boolean fullscreen) Creates an instance of aWindowSettingsrecord class.- Parameters:
width- the value for thewidthrecord componentheight- the value for theheightrecord componentfullscreenWidth- the value for thefullscreenWidthrecord componentfullscreenHeight- the value for thefullscreenHeightrecord componentfullscreen- the value for thefullscreenrecord component
-
-
Method Details
-
withDimensions
- Mappings:
Namespace Name Mixin selector named withDimensionsLnet/minecraft/client/WindowSettings;withDimensions(II)Lnet/minecraft/client/WindowSettings;intermediary method_66512Lnet/minecraft/class_543;method_66512(II)Lnet/minecraft/class_543;official aLfsq;a(II)Lfsq;
-
withFullscreen
- Mappings:
Namespace Name Mixin selector named withFullscreenLnet/minecraft/client/WindowSettings;withFullscreen(Z)Lnet/minecraft/client/WindowSettings;intermediary method_66513Lnet/minecraft/class_543;method_66513(Z)Lnet/minecraft/class_543;official aLfsq;a(Z)Lfsq;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
fullscreenWidth
Returns the value of thefullscreenWidthrecord component.- Returns:
- the value of the
fullscreenWidthrecord component
-
fullscreenHeight
Returns the value of thefullscreenHeightrecord component.- Returns:
- the value of the
fullscreenHeightrecord component
-
fullscreen
public boolean fullscreen()Returns the value of thefullscreenrecord component.- Returns:
- the value of the
fullscreenrecord component
-