Class VideoMode

java.lang.Object
com.mojang.blaze3d.platform.VideoMode

public final class VideoMode extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • CODEC

      public static final com.mojang.serialization.Codec<VideoMode> CODEC
    • GSON

      private static final Gson GSON
    • 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 float refreshRate
  • Constructor Details

    • VideoMode

      public VideoMode(int width, int height, int redBits, int greenBits, int blueBits, int refreshRate)
    • VideoMode

      private VideoMode(int width, int height, int redBits, int greenBits, int blueBits, float refreshRate)
    • VideoMode

      public VideoMode(org.lwjgl.sdl.SDL_DisplayMode mode)
  • Method Details

    • read

      public static Optional<VideoMode> read(@Nullable String s)
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getRedBits

      public int getRedBits()
    • getGreenBits

      public int getGreenBits()
    • getBlueBits

      public int getBlueBits()
    • getRefreshRate

      public float getRefreshRate()
    • refreshRateLabel

      public String refreshRateLabel()
    • 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
    • write

      public String write()