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 Details

    • width

      private final int width
      The field for the width record component.
    • height

      private final int height
      The field for the height record component.
    • fullscreenWidth

      private final OptionalInt fullscreenWidth
      The field for the fullscreenWidth record component.
    • fullscreenHeight

      private final OptionalInt fullscreenHeight
      The field for the fullscreenHeight record component.
    • fullscreen

      private final boolean fullscreen
      The field for the fullscreen record component.
  • Constructor Details

    • WindowSettings

      public WindowSettings(int width, int height, OptionalInt fullscreenWidth, OptionalInt fullscreenHeight, boolean fullscreen)
      Creates an instance of a WindowSettings record class.
      Parameters:
      width - the value for the width record component
      height - the value for the height record component
      fullscreenWidth - the value for the fullscreenWidth record component
      fullscreenHeight - the value for the fullscreenHeight record component
      fullscreen - the value for the fullscreen record component
  • Method Details

    • withDimensions

      public WindowSettings withDimensions(int width, int height)
      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

      public WindowSettings withFullscreen(boolean fullscreen)
      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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • width

      public int width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • height

      public int height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • fullscreenWidth

      public OptionalInt fullscreenWidth()
      Returns the value of the fullscreenWidth record component.
      Returns:
      the value of the fullscreenWidth record component
    • fullscreenHeight

      public OptionalInt fullscreenHeight()
      Returns the value of the fullscreenHeight record component.
      Returns:
      the value of the fullscreenHeight record component
    • fullscreen

      public boolean fullscreen()
      Returns the value of the fullscreen record component.
      Returns:
      the value of the fullscreen record component