Class VideoMode

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

@Environment(CLIENT)
public final class VideoMode
extends Object
  • Field Details

    • PATTERN

      private static final Pattern PATTERN
    • width

      private final int width
    • height

      private final int height
    • redBits

      private final int redBits
    • greenBits

      private final int greenBits
    • blueBits

      private final int blueBits
    • refreshRate

      private final int refreshRate
  • Constructor Details

    • VideoMode

      public VideoMode​(int int2, int int3, int int4, int int5, int int6, int int7)
    • VideoMode

      public VideoMode​(GLFWVidMode.Buffer buffer)
    • VideoMode

      public VideoMode​(GLFWVidMode gLFWVidMode)
  • Method Details

    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getRedBits

      public int getRedBits()
    • getGreenBits

      public int getGreenBits()
    • getBlueBits

      public int getBlueBits()
    • getRefreshRate

      public int getRefreshRate()
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • 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 String string)
    • asString

      public String asString()