Class VideoMode

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

@Environment(CLIENT)
public final class VideoMode
extends Object
Mappings:
Namespace Name
official dld
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 Ldld;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 Ldld;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 Ldld;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 Ldld;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 Ldld;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 Ldld;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 Ldld;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> Ldld;<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)
    • VideoMode

      public VideoMode​(GLFWVidMode gLFWVidMode)
  • Method Details

    • getWidth

      public int getWidth()
      Mappings:
      Namespace Name Mixin selector
      official a Ldld;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 Ldld;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 Ldld;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 Ldld;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 Ldld;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 Ldld;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 Ldld;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
      Mappings:
      Namespace Name Mixin selector
      official hashCode Ldld;hashCode()I
      intermediary hashCode Lnet/minecraft/class_319;hashCode()I
      named hashCode Lnet/minecraft/client/util/VideoMode;hashCode()I
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Ldld;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_319;toString()Ljava/lang/String;
      named toString Lnet/minecraft/client/util/VideoMode;toString()Ljava/lang/String;
    • fromString

      public static Optional<VideoMode> fromString​(@Nullable String string)
      Mappings:
      Namespace Name Mixin selector
      official a Ldld;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 Ldld;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;