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 - fjx- 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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionWindowSettings(int width, int height, OptionalInt fullscreenWidth, OptionalInt fullscreenHeight, boolean fullscreen) Creates an instance of aWindowSettingsrecord class.
- 
Method SummaryModifier 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- 
widthprivate final int widthThe field for thewidthrecord component.
- 
heightprivate final int heightThe field for theheightrecord component.
- 
fullscreenWidthThe field for thefullscreenWidthrecord component.
- 
fullscreenHeightThe field for thefullscreenHeightrecord component.
- 
fullscreenprivate final boolean fullscreenThe field for thefullscreenrecord component.
 
- 
- 
Constructor Details- 
WindowSettingspublic WindowSettings(int width, int height, OptionalInt fullscreenWidth, OptionalInt fullscreenHeight, boolean fullscreen) Creates an instance of aWindowSettingsrecord class.- Parameters:
- width- the value for the- widthrecord component
- height- the value for the- heightrecord component
- fullscreenWidth- the value for the- fullscreenWidthrecord component
- fullscreenHeight- the value for the- fullscreenHeightrecord component
- fullscreen- the value for the- fullscreenrecord 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- Lfjx;a(II)Lfjx;
 
- 
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- Lfjx;a(Z)Lfjx;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
widthpublic int width()Returns the value of thewidthrecord component.- Returns:
- the value of the widthrecord component
 
- 
heightpublic int height()Returns the value of theheightrecord component.- Returns:
- the value of the heightrecord component
 
- 
fullscreenWidthReturns the value of thefullscreenWidthrecord component.- Returns:
- the value of the fullscreenWidthrecord component
 
- 
fullscreenHeightReturns the value of thefullscreenHeightrecord component.- Returns:
- the value of the fullscreenHeightrecord component
 
- 
fullscreenpublic boolean fullscreen()Returns the value of thefullscreenrecord component.- Returns:
- the value of the fullscreenrecord component
 
 
-