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
named net/minecraft/client/util/Window
intermediary net/minecraft/class_1041
official fam
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/util/Window;LOGGER:Lorg/slf4j/Logger;
      intermediary field_5178 Lnet/minecraft/class_1041;field_5178:Lorg/slf4j/Logger;
      official c Lfam;c:Lorg/slf4j/Logger;
    • field_52250

      public static final int field_52250
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52250 Lnet/minecraft/client/util/Window;field_52250:I
      intermediary field_52250 Lnet/minecraft/class_1041;field_52250:I
      official a Lfam;a:I
    • field_52251

      public static final int field_52251
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52251 Lnet/minecraft/client/util/Window;field_52251:I
      intermediary field_52251 Lnet/minecraft/class_1041;field_52251:I
      official b Lfam;b:I
    • errorCallback

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

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

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

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

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

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

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

      private int windowedHeight
      Mappings:
      Namespace Name Mixin selector
      named windowedHeight Lnet/minecraft/client/util/Window;windowedHeight:I
      intermediary field_5184 Lnet/minecraft/class_1041;field_5184:I
      official k Lfam;k:I
    • fullscreenVideoMode

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

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

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

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

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

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

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

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

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

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

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

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

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

      private boolean fullscreenVideoModeDirty
      Mappings:
      Namespace Name Mixin selector
      named fullscreenVideoModeDirty Lnet/minecraft/client/util/Window;fullscreenVideoModeDirty:Z
      intermediary field_5186 Lnet/minecraft/class_1041;field_5186:Z
      official y Lfam;y:Z
    • framerateLimit

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

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

    • Window

      public Window(WindowEventHandler eventHandler, MonitorTracker monitorTracker, WindowSettings settings, @Nullable @Nullable String fullscreenVideoMode, String title)
      Mappings:
      Namespace Name Mixin selector
      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
      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
      official <init> Lfam;<init>(Lfan;Lfak;Lfaa;Ljava/lang/String;Ljava/lang/String;)V
  • Method Details

    • getGlfwPlatform

      public static String getGlfwPlatform()
      Mappings:
      Namespace Name Mixin selector
      named getGlfwPlatform Lnet/minecraft/client/util/Window;getGlfwPlatform()Ljava/lang/String;
      intermediary method_60793 Lnet/minecraft/class_1041;method_60793()Ljava/lang/String;
      official a Lfam;a()Ljava/lang/String;
    • getRefreshRate

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

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

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

      public void setIcon(ResourcePack resourcePack, Icons icons) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named setIcon Lnet/minecraft/client/util/Window;setIcon(Lnet/minecraft/resource/ResourcePack;Lnet/minecraft/client/util/Icons;)V
      intermediary method_4491 Lnet/minecraft/class_1041;method_4491(Lnet/minecraft/class_3262;Lnet/minecraft/class_8518;)V
      official a Lfam;a(Lasq;Lfad;)V
    • setPhase

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

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

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

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

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

      public void setVsync(boolean vsync)
      Mappings:
      Namespace Name Mixin selector
      named setVsync Lnet/minecraft/client/util/Window;setVsync(Z)V
      intermediary method_4497 Lnet/minecraft/class_1041;method_4497(Z)V
      official a Lfam;a(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
      named onWindowPosChanged Lnet/minecraft/client/util/Window;onWindowPosChanged(JII)V
      intermediary method_4478 Lnet/minecraft/class_1041;method_4478(JII)V
      official a Lfam;a(JII)V
    • onFramebufferSizeChanged

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

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

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

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

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

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

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

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

      public Optional<VideoMode> getFullscreenVideoMode()
      Mappings:
      Namespace Name Mixin selector
      named getFullscreenVideoMode Lnet/minecraft/client/util/Window;getFullscreenVideoMode()Ljava/util/Optional;
      intermediary method_4511 Lnet/minecraft/class_1041;method_4511()Ljava/util/Optional;
      official g Lfam;g()Ljava/util/Optional;
    • setFullscreenVideoMode

      public void setFullscreenVideoMode(Optional<VideoMode> fullscreenVideoMode)
      Mappings:
      Namespace Name Mixin selector
      named setFullscreenVideoMode Lnet/minecraft/client/util/Window;setFullscreenVideoMode(Ljava/util/Optional;)V
      intermediary method_4505 Lnet/minecraft/class_1041;method_4505(Ljava/util/Optional;)V
      official a Lfam;a(Ljava/util/Optional;)V
    • applyFullscreenVideoMode

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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