Class VideoMode

java.lang.Object
net.minecraft.client.util.VideoMode

@Environment(CLIENT) public final class VideoMode extends Object
Mappings:
Namespace Name
official egh
intermediary net/minecraft/class_319
named net/minecraft/client/util/VideoMode
  • Field Details

    • PATTERN

      private static final Pattern PATTERN
      Mappings:
      Namespace Name Mixin selector
      official g Legh;g:Ljava/util/regex/Pattern;
      intermediary field_1981 Lnet/minecraft/class_319;field_1981:Ljava/util/regex/Pattern;
      named PATTERN Lnet/minecraft/client/util/VideoMode;PATTERN:Ljava/util/regex/Pattern;
    • width

      private final int width
      Mappings:
      Namespace Name Mixin selector
      official a Legh;a:I
      intermediary field_1980 Lnet/minecraft/class_319;field_1980:I
      named width Lnet/minecraft/client/util/VideoMode;width:I
    • height

      private final int height
      Mappings:
      Namespace Name Mixin selector
      official b Legh;b:I
      intermediary field_1979 Lnet/minecraft/class_319;field_1979:I
      named height Lnet/minecraft/client/util/VideoMode;height:I
    • redBits

      private final int redBits
      Mappings:
      Namespace Name Mixin selector
      official c Legh;c:I
      intermediary field_1978 Lnet/minecraft/class_319;field_1978:I
      named redBits Lnet/minecraft/client/util/VideoMode;redBits:I
    • greenBits

      private final int greenBits
      Mappings:
      Namespace Name Mixin selector
      official d Legh;d:I
      intermediary field_1977 Lnet/minecraft/class_319;field_1977:I
      named greenBits Lnet/minecraft/client/util/VideoMode;greenBits:I
    • blueBits

      private final int blueBits
      Mappings:
      Namespace Name Mixin selector
      official e Legh;e:I
      intermediary field_1976 Lnet/minecraft/class_319;field_1976:I
      named blueBits Lnet/minecraft/client/util/VideoMode;blueBits:I
    • refreshRate

      private final int refreshRate
      Mappings:
      Namespace Name Mixin selector
      official f Legh;f:I
      intermediary field_1975 Lnet/minecraft/class_319;field_1975:I
      named refreshRate Lnet/minecraft/client/util/VideoMode;refreshRate:I
  • Constructor Details

    • VideoMode

      public VideoMode(int width, int height, int redBits, int greenBits, int blueBits, int refreshRate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Legh;<init>(IIIIII)V
      intermediary <init> Lnet/minecraft/class_319;<init>(IIIIII)V
      named <init> Lnet/minecraft/client/util/VideoMode;<init>(IIIIII)V
    • VideoMode

      public VideoMode(GLFWVidMode.Buffer buffer)
      Mappings:
      Namespace Name Mixin selector
      official <init> Legh;<init>(Lorg/lwjgl/glfw/GLFWVidMode$Buffer;)V
      intermediary <init> Lnet/minecraft/class_319;<init>(Lorg/lwjgl/glfw/GLFWVidMode$Buffer;)V
      named <init> Lnet/minecraft/client/util/VideoMode;<init>(Lorg/lwjgl/glfw/GLFWVidMode$Buffer;)V
    • VideoMode

      public VideoMode(GLFWVidMode vidMode)
      Mappings:
      Namespace Name Mixin selector
      official <init> Legh;<init>(Lorg/lwjgl/glfw/GLFWVidMode;)V
      intermediary <init> Lnet/minecraft/class_319;<init>(Lorg/lwjgl/glfw/GLFWVidMode;)V
      named <init> Lnet/minecraft/client/util/VideoMode;<init>(Lorg/lwjgl/glfw/GLFWVidMode;)V
  • Method Details

    • getWidth

      public int getWidth()
      Mappings:
      Namespace Name Mixin selector
      official a Legh;a()I
      intermediary method_1668 Lnet/minecraft/class_319;method_1668()I
      named getWidth Lnet/minecraft/client/util/VideoMode;getWidth()I
    • getHeight

      public int getHeight()
      Mappings:
      Namespace Name Mixin selector
      official b Legh;b()I
      intermediary method_1669 Lnet/minecraft/class_319;method_1669()I
      named getHeight Lnet/minecraft/client/util/VideoMode;getHeight()I
    • getRedBits

      public int getRedBits()
      Mappings:
      Namespace Name Mixin selector
      official c Legh;c()I
      intermediary method_1666 Lnet/minecraft/class_319;method_1666()I
      named getRedBits Lnet/minecraft/client/util/VideoMode;getRedBits()I
    • getGreenBits

      public int getGreenBits()
      Mappings:
      Namespace Name Mixin selector
      official d Legh;d()I
      intermediary method_1667 Lnet/minecraft/class_319;method_1667()I
      named getGreenBits Lnet/minecraft/client/util/VideoMode;getGreenBits()I
    • getBlueBits

      public int getBlueBits()
      Mappings:
      Namespace Name Mixin selector
      official e Legh;e()I
      intermediary method_1672 Lnet/minecraft/class_319;method_1672()I
      named getBlueBits Lnet/minecraft/client/util/VideoMode;getBlueBits()I
    • getRefreshRate

      public int getRefreshRate()
      Mappings:
      Namespace Name Mixin selector
      official f Legh;f()I
      intermediary method_1671 Lnet/minecraft/class_319;method_1671()I
      named getRefreshRate Lnet/minecraft/client/util/VideoMode;getRefreshRate()I
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Legh;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_319;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/client/util/VideoMode;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromString

      public static Optional<VideoMode> fromString(@Nullable @Nullable String string)
      Mappings:
      Namespace Name Mixin selector
      official a Legh;a(Ljava/lang/String;)Ljava/util/Optional;
      intermediary method_1665 Lnet/minecraft/class_319;method_1665(Ljava/lang/String;)Ljava/util/Optional;
      named fromString Lnet/minecraft/client/util/VideoMode;fromString(Ljava/lang/String;)Ljava/util/Optional;
    • asString

      public String asString()
      Mappings:
      Namespace Name Mixin selector
      official g Legh;g()Ljava/lang/String;
      intermediary method_1670 Lnet/minecraft/class_319;method_1670()Ljava/lang/String;
      named asString Lnet/minecraft/client/util/VideoMode;asString()Ljava/lang/String;