Class Window

java.lang.Object
net.minecraft.client.util.Window
All Implemented Interfaces:
AutoCloseable

@Environment(CLIENT) public final class Window extends Object implements AutoCloseable
Mappings:
Namespace Name
official dpq
intermediary net/minecraft/class_1041
named net/minecraft/client/util/Window
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Ldpq;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_5178 Lnet/minecraft/class_1041;field_5178:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/util/Window;LOGGER:Lorg/apache/logging/log4j/Logger;
    • errorCallback

      private final GLFWErrorCallback errorCallback
      Mappings:
      Namespace Name Mixin selector
      official b Ldpq;b:Lorg/lwjgl/glfw/GLFWErrorCallback;
      intermediary field_5190 Lnet/minecraft/class_1041;field_5190:Lorg/lwjgl/glfw/GLFWErrorCallback;
      named errorCallback Lnet/minecraft/client/util/Window;errorCallback:Lorg/lwjgl/glfw/GLFWErrorCallback;
    • eventHandler

      private final WindowEventHandler eventHandler
      Mappings:
      Namespace Name Mixin selector
      official c Ldpq;c:Ldpr;
      intermediary field_5176 Lnet/minecraft/class_1041;field_5176:Lnet/minecraft/class_3678;
      named eventHandler Lnet/minecraft/client/util/Window;eventHandler:Lnet/minecraft/client/WindowEventHandler;
    • monitorTracker

      private final MonitorTracker monitorTracker
      Mappings:
      Namespace Name Mixin selector
      official d Ldpq;d:Ldpn;
      intermediary field_5195 Lnet/minecraft/class_1041;field_5195:Lnet/minecraft/class_323;
      named monitorTracker Lnet/minecraft/client/util/Window;monitorTracker:Lnet/minecraft/client/util/MonitorTracker;
    • handle

      private final long handle
      Mappings:
      Namespace Name Mixin selector
      official e Ldpq;e:J
      intermediary field_5187 Lnet/minecraft/class_1041;field_5187:J
      named handle Lnet/minecraft/client/util/Window;handle:J
    • windowedX

      private int windowedX
      Mappings:
      Namespace Name Mixin selector
      official f Ldpq;f:I
      intermediary field_5175 Lnet/minecraft/class_1041;field_5175:I
      named windowedX Lnet/minecraft/client/util/Window;windowedX:I
    • windowedY

      private int windowedY
      Mappings:
      Namespace Name Mixin selector
      official g Ldpq;g:I
      intermediary field_5185 Lnet/minecraft/class_1041;field_5185:I
      named windowedY Lnet/minecraft/client/util/Window;windowedY:I
    • windowedWidth

      private int windowedWidth
      Mappings:
      Namespace Name Mixin selector
      official h Ldpq;h:I
      intermediary field_5174 Lnet/minecraft/class_1041;field_5174:I
      named windowedWidth Lnet/minecraft/client/util/Window;windowedWidth:I
    • windowedHeight

      private int windowedHeight
      Mappings:
      Namespace Name Mixin selector
      official i Ldpq;i:I
      intermediary field_5184 Lnet/minecraft/class_1041;field_5184:I
      named windowedHeight Lnet/minecraft/client/util/Window;windowedHeight:I
    • videoMode

      private Optional<VideoMode> videoMode
      Mappings:
      Namespace Name Mixin selector
      official j Ldpq;j:Ljava/util/Optional;
      intermediary field_5193 Lnet/minecraft/class_1041;field_5193:Ljava/util/Optional;
      named videoMode Lnet/minecraft/client/util/Window;videoMode:Ljava/util/Optional;
    • fullscreen

      private boolean fullscreen
      Mappings:
      Namespace Name Mixin selector
      official k Ldpq;k:Z
      intermediary field_5191 Lnet/minecraft/class_1041;field_5191:Z
      named fullscreen Lnet/minecraft/client/util/Window;fullscreen:Z
    • currentFullscreen

      private boolean currentFullscreen
      Mappings:
      Namespace Name Mixin selector
      official l Ldpq;l:Z
      intermediary field_5177 Lnet/minecraft/class_1041;field_5177:Z
      named currentFullscreen Lnet/minecraft/client/util/Window;currentFullscreen:Z
    • x

      private int x
      Mappings:
      Namespace Name Mixin selector
      official m Ldpq;m:I
      intermediary field_5183 Lnet/minecraft/class_1041;field_5183:I
      named x Lnet/minecraft/client/util/Window;x:I
    • y

      private int y
      Mappings:
      Namespace Name Mixin selector
      official n Ldpq;n:I
      intermediary field_5198 Lnet/minecraft/class_1041;field_5198:I
      named y Lnet/minecraft/client/util/Window;y:I
    • width

      private int width
      Mappings:
      Namespace Name Mixin selector
      official o Ldpq;o:I
      intermediary field_5182 Lnet/minecraft/class_1041;field_5182:I
      named width Lnet/minecraft/client/util/Window;width:I
    • height

      private int height
      Mappings:
      Namespace Name Mixin selector
      official p Ldpq;p:I
      intermediary field_5197 Lnet/minecraft/class_1041;field_5197:I
      named height Lnet/minecraft/client/util/Window;height:I
    • framebufferWidth

      private int framebufferWidth
      Mappings:
      Namespace Name Mixin selector
      official q Ldpq;q:I
      intermediary field_5181 Lnet/minecraft/class_1041;field_5181:I
      named framebufferWidth Lnet/minecraft/client/util/Window;framebufferWidth:I
    • framebufferHeight

      private int framebufferHeight
      Mappings:
      Namespace Name Mixin selector
      official r Ldpq;r:I
      intermediary field_5196 Lnet/minecraft/class_1041;field_5196:I
      named framebufferHeight Lnet/minecraft/client/util/Window;framebufferHeight:I
    • scaledWidth

      private int scaledWidth
      Mappings:
      Namespace Name Mixin selector
      official s Ldpq;s:I
      intermediary field_5180 Lnet/minecraft/class_1041;field_5180:I
      named scaledWidth Lnet/minecraft/client/util/Window;scaledWidth:I
    • scaledHeight

      private int scaledHeight
      Mappings:
      Namespace Name Mixin selector
      official t Ldpq;t:I
      intermediary field_5194 Lnet/minecraft/class_1041;field_5194:I
      named scaledHeight Lnet/minecraft/client/util/Window;scaledHeight:I
    • scaleFactor

      private double scaleFactor
      Mappings:
      Namespace Name Mixin selector
      official u Ldpq;u:D
      intermediary field_5179 Lnet/minecraft/class_1041;field_5179:D
      named scaleFactor Lnet/minecraft/client/util/Window;scaleFactor:D
    • phase

      private String phase
      Mappings:
      Namespace Name Mixin selector
      official v Ldpq;v:Ljava/lang/String;
      intermediary field_5192 Lnet/minecraft/class_1041;field_5192:Ljava/lang/String;
      named phase Lnet/minecraft/client/util/Window;phase:Ljava/lang/String;
    • videoModeDirty

      private boolean videoModeDirty
      Mappings:
      Namespace Name Mixin selector
      official w Ldpq;w:Z
      intermediary field_5186 Lnet/minecraft/class_1041;field_5186:Z
      named videoModeDirty Lnet/minecraft/client/util/Window;videoModeDirty:Z
    • framerateLimit

      private int framerateLimit
      Mappings:
      Namespace Name Mixin selector
      official x Ldpq;x:I
      intermediary field_16238 Lnet/minecraft/class_1041;field_16238:I
      named framerateLimit Lnet/minecraft/client/util/Window;framerateLimit:I
    • vsync

      private boolean vsync
      Mappings:
      Namespace Name Mixin selector
      official y Ldpq;y:Z
      intermediary field_16517 Lnet/minecraft/class_1041;field_16517:Z
      named vsync Lnet/minecraft/client/util/Window;vsync:Z
  • Constructor Details

    • Window

      public Window(WindowEventHandler eventHandler, MonitorTracker monitorTracker, WindowSettings settings, @Nullable @Nullable String videoMode, String title)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldpq;<init>(Ldpr;Ldpn;Ldpd;Ljava/lang/String;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_1041;<init>(Lnet/minecraft/class_3678;Lnet/minecraft/class_323;Lnet/minecraft/class_543;Ljava/lang/String;Ljava/lang/String;)V
      named <init> Lnet/minecraft/client/util/Window;<init>(Lnet/minecraft/client/WindowEventHandler;Lnet/minecraft/client/util/MonitorTracker;Lnet/minecraft/client/WindowSettings;Ljava/lang/String;Ljava/lang/String;)V
  • Method Details

    • getRefreshRate

      public int getRefreshRate()
      Mappings:
      Namespace Name Mixin selector
      official a Ldpq;a()I
      intermediary method_22092 Lnet/minecraft/class_1041;method_22092()I
      named getRefreshRate Lnet/minecraft/client/util/Window;getRefreshRate()I
    • shouldClose

      public boolean shouldClose()
      Mappings:
      Namespace Name Mixin selector
      official b Ldpq;b()Z
      intermediary method_22093 Lnet/minecraft/class_1041;method_22093()Z
      named shouldClose Lnet/minecraft/client/util/Window;shouldClose()Z
    • acceptError

      public static void acceptError(BiConsumer<Integer,String> consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpq;a(Ljava/util/function/BiConsumer;)V
      intermediary method_4492 Lnet/minecraft/class_1041;method_4492(Ljava/util/function/BiConsumer;)V
      named acceptError Lnet/minecraft/client/util/Window;acceptError(Ljava/util/function/BiConsumer;)V
    • setIcon

      public void setIcon(InputStream icon16, InputStream icon32)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpq;a(Ljava/io/InputStream;Ljava/io/InputStream;)V
      intermediary method_4491 Lnet/minecraft/class_1041;method_4491(Ljava/io/InputStream;Ljava/io/InputStream;)V
      named setIcon Lnet/minecraft/client/util/Window;setIcon(Ljava/io/InputStream;Ljava/io/InputStream;)V
    • readImage

      @Nullable private @Nullable ByteBuffer readImage(InputStream in, IntBuffer x, IntBuffer y, IntBuffer channels) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldpq;a(Ljava/io/InputStream;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;)Ljava/nio/ByteBuffer;
      intermediary method_4510 Lnet/minecraft/class_1041;method_4510(Ljava/io/InputStream;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;)Ljava/nio/ByteBuffer;
      named readImage Lnet/minecraft/client/util/Window;readImage(Ljava/io/InputStream;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;)Ljava/nio/ByteBuffer;
    • setPhase

      public void setPhase(String phase)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpq;a(Ljava/lang/String;)V
      intermediary method_4474 Lnet/minecraft/class_1041;method_4474(Ljava/lang/String;)V
      named setPhase Lnet/minecraft/client/util/Window;setPhase(Ljava/lang/String;)V
    • throwOnGlError

      private void throwOnGlError()
      Mappings:
      Namespace Name Mixin selector
      official u Ldpq;u()V
      intermediary method_4481 Lnet/minecraft/class_1041;method_4481()V
      named throwOnGlError Lnet/minecraft/client/util/Window;throwOnGlError()V
    • throwGlError

      private static void throwGlError(int error, long description)
      Mappings:
      Namespace Name Mixin selector
      official b Ldpq;b(IJ)V
      intermediary method_4501 Lnet/minecraft/class_1041;method_4501(IJ)V
      named throwGlError Lnet/minecraft/client/util/Window;throwGlError(IJ)V
    • logGlError

      public void logGlError(int error, long description)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpq;a(IJ)V
      intermediary method_4482 Lnet/minecraft/class_1041;method_4482(IJ)V
      named logGlError Lnet/minecraft/client/util/Window;logGlError(IJ)V
    • logOnGlError

      public void logOnGlError()
      Mappings:
      Namespace Name Mixin selector
      official c Ldpq;c()V
      intermediary method_4513 Lnet/minecraft/class_1041;method_4513()V
      named logOnGlError Lnet/minecraft/client/util/Window;logOnGlError()V
    • setVsync

      public void setVsync(boolean vsync)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpq;a(Z)V
      intermediary method_4497 Lnet/minecraft/class_1041;method_4497(Z)V
      named setVsync Lnet/minecraft/client/util/Window;setVsync(Z)V
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • onWindowPosChanged

      private void onWindowPosChanged(long window, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpq;a(JII)V
      intermediary method_4478 Lnet/minecraft/class_1041;method_4478(JII)V
      named onWindowPosChanged Lnet/minecraft/client/util/Window;onWindowPosChanged(JII)V
    • onFramebufferSizeChanged

      private void onFramebufferSizeChanged(long window, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official b Ldpq;b(JII)V
      intermediary method_4504 Lnet/minecraft/class_1041;method_4504(JII)V
      named onFramebufferSizeChanged Lnet/minecraft/client/util/Window;onFramebufferSizeChanged(JII)V
    • updateFramebufferSize

      private void updateFramebufferSize()
      Mappings:
      Namespace Name Mixin selector
      official v Ldpq;v()V
      intermediary method_4483 Lnet/minecraft/class_1041;method_4483()V
      named updateFramebufferSize Lnet/minecraft/client/util/Window;updateFramebufferSize()V
    • onWindowSizeChanged

      private void onWindowSizeChanged(long window, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official c Ldpq;c(JII)V
      intermediary method_4488 Lnet/minecraft/class_1041;method_4488(JII)V
      named onWindowSizeChanged Lnet/minecraft/client/util/Window;onWindowSizeChanged(JII)V
    • onWindowFocusChanged

      private void onWindowFocusChanged(long window, boolean focused)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpq;a(JZ)V
      intermediary method_4494 Lnet/minecraft/class_1041;method_4494(JZ)V
      named onWindowFocusChanged Lnet/minecraft/client/util/Window;onWindowFocusChanged(JZ)V
    • onCursorEnterChanged

      private void onCursorEnterChanged(long window, boolean entered)
      Mappings:
      Namespace Name Mixin selector
      official b Ldpq;b(JZ)V
      intermediary method_30132 Lnet/minecraft/class_1041;method_30132(JZ)V
      named onCursorEnterChanged Lnet/minecraft/client/util/Window;onCursorEnterChanged(JZ)V
    • setFramerateLimit

      public void setFramerateLimit(int framerateLimit)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpq;a(I)V
      intermediary method_15999 Lnet/minecraft/class_1041;method_15999(I)V
      named setFramerateLimit Lnet/minecraft/client/util/Window;setFramerateLimit(I)V
    • getFramerateLimit

      public int getFramerateLimit()
      Mappings:
      Namespace Name Mixin selector
      official d Ldpq;d()I
      intermediary method_16000 Lnet/minecraft/class_1041;method_16000()I
      named getFramerateLimit Lnet/minecraft/client/util/Window;getFramerateLimit()I
    • swapBuffers

      public void swapBuffers()
      Mappings:
      Namespace Name Mixin selector
      official e Ldpq;e()V
      intermediary method_15998 Lnet/minecraft/class_1041;method_15998()V
      named swapBuffers Lnet/minecraft/client/util/Window;swapBuffers()V
    • getVideoMode

      public Optional<VideoMode> getVideoMode()
      Mappings:
      Namespace Name Mixin selector
      official f Ldpq;f()Ljava/util/Optional;
      intermediary method_4511 Lnet/minecraft/class_1041;method_4511()Ljava/util/Optional;
      named getVideoMode Lnet/minecraft/client/util/Window;getVideoMode()Ljava/util/Optional;
    • setVideoMode

      public void setVideoMode(Optional<VideoMode> videoMode)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpq;a(Ljava/util/Optional;)V
      intermediary method_4505 Lnet/minecraft/class_1041;method_4505(Ljava/util/Optional;)V
      named setVideoMode Lnet/minecraft/client/util/Window;setVideoMode(Ljava/util/Optional;)V
    • applyVideoMode

      public void applyVideoMode()
      Mappings:
      Namespace Name Mixin selector
      official g Ldpq;g()V
      intermediary method_4475 Lnet/minecraft/class_1041;method_4475()V
      named applyVideoMode Lnet/minecraft/client/util/Window;applyVideoMode()V
    • updateWindowRegion

      private void updateWindowRegion()
      Mappings:
      Namespace Name Mixin selector
      official w Ldpq;w()V
      intermediary method_4479 Lnet/minecraft/class_1041;method_4479()V
      named updateWindowRegion Lnet/minecraft/client/util/Window;updateWindowRegion()V
    • toggleFullscreen

      public void toggleFullscreen()
      Mappings:
      Namespace Name Mixin selector
      official h Ldpq;h()V
      intermediary method_4500 Lnet/minecraft/class_1041;method_4500()V
      named toggleFullscreen Lnet/minecraft/client/util/Window;toggleFullscreen()V
    • setWindowedSize

      public void setWindowedSize(int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpq;a(II)V
      intermediary method_36813 Lnet/minecraft/class_1041;method_36813(II)V
      named setWindowedSize Lnet/minecraft/client/util/Window;setWindowedSize(II)V
    • updateFullscreen

      private void updateFullscreen(boolean vsync)
      Mappings:
      Namespace Name Mixin selector
      official c Ldpq;c(Z)V
      intermediary method_4485 Lnet/minecraft/class_1041;method_4485(Z)V
      named updateFullscreen Lnet/minecraft/client/util/Window;updateFullscreen(Z)V
    • calculateScaleFactor

      public int calculateScaleFactor(int guiScale, boolean forceUnicodeFont)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpq;a(IZ)I
      intermediary method_4476 Lnet/minecraft/class_1041;method_4476(IZ)I
      named calculateScaleFactor Lnet/minecraft/client/util/Window;calculateScaleFactor(IZ)I
    • setScaleFactor

      public void setScaleFactor(double scaleFactor)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpq;a(D)V
      intermediary method_15997 Lnet/minecraft/class_1041;method_15997(D)V
      named setScaleFactor Lnet/minecraft/client/util/Window;setScaleFactor(D)V
    • setTitle

      public void setTitle(String title)
      Mappings:
      Namespace Name Mixin selector
      official b Ldpq;b(Ljava/lang/String;)V
      intermediary method_24286 Lnet/minecraft/class_1041;method_24286(Ljava/lang/String;)V
      named setTitle Lnet/minecraft/client/util/Window;setTitle(Ljava/lang/String;)V
    • getHandle

      public long getHandle()
      Mappings:
      Namespace Name Mixin selector
      official i Ldpq;i()J
      intermediary method_4490 Lnet/minecraft/class_1041;method_4490()J
      named getHandle Lnet/minecraft/client/util/Window;getHandle()J
    • isFullscreen

      public boolean isFullscreen()
      Mappings:
      Namespace Name Mixin selector
      official j Ldpq;j()Z
      intermediary method_4498 Lnet/minecraft/class_1041;method_4498()Z
      named isFullscreen Lnet/minecraft/client/util/Window;isFullscreen()Z
    • getFramebufferWidth

      public int getFramebufferWidth()
      Mappings:
      Namespace Name Mixin selector
      official k Ldpq;k()I
      intermediary method_4489 Lnet/minecraft/class_1041;method_4489()I
      named getFramebufferWidth Lnet/minecraft/client/util/Window;getFramebufferWidth()I
    • getFramebufferHeight

      public int getFramebufferHeight()
      Mappings:
      Namespace Name Mixin selector
      official l Ldpq;l()I
      intermediary method_4506 Lnet/minecraft/class_1041;method_4506()I
      named getFramebufferHeight Lnet/minecraft/client/util/Window;getFramebufferHeight()I
    • setFramebufferWidth

      public void setFramebufferWidth(int framebufferWidth)
      Mappings:
      Namespace Name Mixin selector
      official b Ldpq;b(I)V
      intermediary method_35642 Lnet/minecraft/class_1041;method_35642(I)V
      named setFramebufferWidth Lnet/minecraft/client/util/Window;setFramebufferWidth(I)V
    • setFramebufferHeight

      public void setFramebufferHeight(int framebufferHeight)
      Mappings:
      Namespace Name Mixin selector
      official c Ldpq;c(I)V
      intermediary method_35643 Lnet/minecraft/class_1041;method_35643(I)V
      named setFramebufferHeight Lnet/minecraft/client/util/Window;setFramebufferHeight(I)V
    • getWidth

      public int getWidth()
      Mappings:
      Namespace Name Mixin selector
      official m Ldpq;m()I
      intermediary method_4480 Lnet/minecraft/class_1041;method_4480()I
      named getWidth Lnet/minecraft/client/util/Window;getWidth()I
    • getHeight

      public int getHeight()
      Mappings:
      Namespace Name Mixin selector
      official n Ldpq;n()I
      intermediary method_4507 Lnet/minecraft/class_1041;method_4507()I
      named getHeight Lnet/minecraft/client/util/Window;getHeight()I
    • getScaledWidth

      public int getScaledWidth()
      Mappings:
      Namespace Name Mixin selector
      official o Ldpq;o()I
      intermediary method_4486 Lnet/minecraft/class_1041;method_4486()I
      named getScaledWidth Lnet/minecraft/client/util/Window;getScaledWidth()I
    • getScaledHeight

      public int getScaledHeight()
      Mappings:
      Namespace Name Mixin selector
      official p Ldpq;p()I
      intermediary method_4502 Lnet/minecraft/class_1041;method_4502()I
      named getScaledHeight Lnet/minecraft/client/util/Window;getScaledHeight()I
    • getX

      public int getX()
      Mappings:
      Namespace Name Mixin selector
      official q Ldpq;q()I
      intermediary method_4499 Lnet/minecraft/class_1041;method_4499()I
      named getX Lnet/minecraft/client/util/Window;getX()I
    • getY

      public int getY()
      Mappings:
      Namespace Name Mixin selector
      official r Ldpq;r()I
      intermediary method_4477 Lnet/minecraft/class_1041;method_4477()I
      named getY Lnet/minecraft/client/util/Window;getY()I
    • getScaleFactor

      public double getScaleFactor()
      Mappings:
      Namespace Name Mixin selector
      official s Ldpq;s()D
      intermediary method_4495 Lnet/minecraft/class_1041;method_4495()D
      named getScaleFactor Lnet/minecraft/client/util/Window;getScaleFactor()D
    • getMonitor

      @Nullable public @Nullable Monitor getMonitor()
      Mappings:
      Namespace Name Mixin selector
      official t Ldpq;t()Ldpj;
      intermediary method_20831 Lnet/minecraft/class_1041;method_20831()Lnet/minecraft/class_313;
      named getMonitor Lnet/minecraft/client/util/Window;getMonitor()Lnet/minecraft/client/util/Monitor;
    • setRawMouseMotion

      public void setRawMouseMotion(boolean rawMouseMotion)
      Mappings:
      Namespace Name Mixin selector
      official b Ldpq;b(Z)V
      intermediary method_21668 Lnet/minecraft/class_1041;method_21668(Z)V
      named setRawMouseMotion Lnet/minecraft/client/util/Window;setRawMouseMotion(Z)V