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/WindowSettings
intermediary net/minecraft/class_543
official fmw
named width
intermediary comp_3494
official a
named height
intermediary comp_3495
official b
named fullscreenWidth
intermediary comp_3496
official c
named fullscreenHeight
intermediary comp_3497
official d
named fullscreen
intermediary comp_3498
official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
The field for thefullscreen
record component.private final OptionalInt
The field for thefullscreenHeight
record component.private final OptionalInt
The field for thefullscreenWidth
record component.private final int
The field for theheight
record component.private final int
The field for thewidth
record component. -
Constructor Summary
ConstructorsConstructorDescriptionWindowSettings
(int width, int height, OptionalInt fullscreenWidth, OptionalInt fullscreenHeight, boolean fullscreen) Creates an instance of aWindowSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of thefullscreen
record component.Returns the value of thefullscreenHeight
record component.Returns the value of thefullscreenWidth
record component.final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.final String
toString()
Returns a string representation of this record class.int
width()
Returns the value of thewidth
record component.withDimensions
(int width, int height) withFullscreen
(boolean fullscreen)
-
Field Details
-
width
private final int widthThe field for thewidth
record component. -
height
private final int heightThe field for theheight
record component. -
fullscreenWidth
The field for thefullscreenWidth
record component. -
fullscreenHeight
The field for thefullscreenHeight
record component. -
fullscreen
private final boolean fullscreenThe field for thefullscreen
record component.
-
-
Constructor Details
-
WindowSettings
public WindowSettings(int width, int height, OptionalInt fullscreenWidth, OptionalInt fullscreenHeight, boolean fullscreen) Creates an instance of aWindowSettings
record class.- Parameters:
width
- the value for thewidth
record componentheight
- the value for theheight
record componentfullscreenWidth
- the value for thefullscreenWidth
record componentfullscreenHeight
- the value for thefullscreenHeight
record componentfullscreen
- the value for thefullscreen
record component
-
-
Method Details
-
withDimensions
- Mappings:
Namespace Name Mixin selector named withDimensions
Lnet/minecraft/client/WindowSettings;withDimensions(II)Lnet/minecraft/client/WindowSettings;
intermediary method_66512
Lnet/minecraft/class_543;method_66512(II)Lnet/minecraft/class_543;
official a
Lfmw;a(II)Lfmw;
-
withFullscreen
- Mappings:
Namespace Name Mixin selector named withFullscreen
Lnet/minecraft/client/WindowSettings;withFullscreen(Z)Lnet/minecraft/client/WindowSettings;
intermediary method_66513
Lnet/minecraft/class_543;method_66513(Z)Lnet/minecraft/class_543;
official a
Lfmw;a(Z)Lfmw;
-
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 thewidth
record component.- Returns:
- the value of the
width
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
fullscreenWidth
Returns the value of thefullscreenWidth
record component.- Returns:
- the value of the
fullscreenWidth
record component
-
fullscreenHeight
Returns the value of thefullscreenHeight
record component.- Returns:
- the value of the
fullscreenHeight
record component
-
fullscreen
public boolean fullscreen()Returns the value of thefullscreen
record component.- Returns:
- the value of the
fullscreen
record component
-