Package net.minecraft.client.util
Class Window
java.lang.Object
net.minecraft.client.util.Window
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name named net/minecraft/client/util/Windowintermediary net/minecraft/class_1041official ezq
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final GLFWErrorCallbackprivate final WindowEventHandlerprivate intprivate intprivate intprivate booleanprivate final longprivate intprivate static final Loggerprivate final MonitorTrackerprivate Stringprivate intprivate intprivate doubleprivate booleanprivate booleanprivate intprivate intprivate intprivate intprivate intprivate intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionWindow(WindowEventHandler eventHandler, MonitorTracker monitorTracker, WindowSettings settings, @Nullable String videoMode, String title) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidacceptError(BiConsumer<Integer, String> consumer) voidintcalculateScaleFactor(int guiScale, boolean forceUnicodeFont) voidclose()intintintlongintintintintdoubleintgetWidth()intgetX()intgetY()booleanvoidlogGlError(int error, long description) voidprivate voidonCursorEnterChanged(long window, boolean entered) private voidonFramebufferSizeChanged(long window, int width, int height) private voidonWindowFocusChanged(long window, boolean focused) private voidonWindowPosChanged(long window, int x, int y) private voidonWindowSizeChanged(long window, int width, int height) voidsetFramebufferHeight(int framebufferHeight) voidsetFramebufferWidth(int framebufferWidth) voidsetFramerateLimit(int framerateLimit) voidsetIcon(ResourcePack resourcePack, Icons icons) voidvoidsetRawMouseMotion(boolean rawMouseMotion) voidsetScaleFactor(double scaleFactor) voidvoidsetVideoMode(Optional<VideoMode> videoMode) voidsetVsync(boolean vsync) voidsetWindowedSize(int width, int height) booleanvoidprivate static voidthrowGlError(int error, long description) private voidvoidprivate voidprivate voidupdateFullscreen(boolean vsync) private void
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/util/Window;LOGGER:Lorg/slf4j/Logger;intermediary field_5178Lnet/minecraft/class_1041;field_5178:Lorg/slf4j/Logger;official aLezq;a:Lorg/slf4j/Logger;
-
errorCallback
- Mappings:
Namespace Name Mixin selector named errorCallbackLnet/minecraft/client/util/Window;errorCallback:Lorg/lwjgl/glfw/GLFWErrorCallback;intermediary field_5190Lnet/minecraft/class_1041;field_5190:Lorg/lwjgl/glfw/GLFWErrorCallback;official bLezq;b:Lorg/lwjgl/glfw/GLFWErrorCallback;
-
eventHandler
- Mappings:
Namespace Name Mixin selector named eventHandlerLnet/minecraft/client/util/Window;eventHandler:Lnet/minecraft/client/WindowEventHandler;intermediary field_5176Lnet/minecraft/class_1041;field_5176:Lnet/minecraft/class_3678;official cLezq;c:Lezr;
-
monitorTracker
- Mappings:
Namespace Name Mixin selector named monitorTrackerLnet/minecraft/client/util/Window;monitorTracker:Lnet/minecraft/client/util/MonitorTracker;intermediary field_5195Lnet/minecraft/class_1041;field_5195:Lnet/minecraft/class_323;official dLezq;d:Lezo;
-
handle
private final long handle- Mappings:
Namespace Name Mixin selector named handleLnet/minecraft/client/util/Window;handle:Jintermediary field_5187Lnet/minecraft/class_1041;field_5187:Jofficial eLezq;e:J
-
windowedX
private int windowedX- Mappings:
Namespace Name Mixin selector named windowedXLnet/minecraft/client/util/Window;windowedX:Iintermediary field_5175Lnet/minecraft/class_1041;field_5175:Iofficial fLezq;f:I
-
windowedY
private int windowedY- Mappings:
Namespace Name Mixin selector named windowedYLnet/minecraft/client/util/Window;windowedY:Iintermediary field_5185Lnet/minecraft/class_1041;field_5185:Iofficial gLezq;g:I
-
windowedWidth
private int windowedWidth- Mappings:
Namespace Name Mixin selector named windowedWidthLnet/minecraft/client/util/Window;windowedWidth:Iintermediary field_5174Lnet/minecraft/class_1041;field_5174:Iofficial hLezq;h:I
-
windowedHeight
private int windowedHeight- Mappings:
Namespace Name Mixin selector named windowedHeightLnet/minecraft/client/util/Window;windowedHeight:Iintermediary field_5184Lnet/minecraft/class_1041;field_5184:Iofficial iLezq;i:I
-
videoMode
- Mappings:
Namespace Name Mixin selector named videoModeLnet/minecraft/client/util/Window;videoMode:Ljava/util/Optional;intermediary field_5193Lnet/minecraft/class_1041;field_5193:Ljava/util/Optional;official jLezq;j:Ljava/util/Optional;
-
fullscreen
private boolean fullscreen- Mappings:
Namespace Name Mixin selector named fullscreenLnet/minecraft/client/util/Window;fullscreen:Zintermediary field_5191Lnet/minecraft/class_1041;field_5191:Zofficial kLezq;k:Z
-
currentFullscreen
private boolean currentFullscreen- Mappings:
Namespace Name Mixin selector named currentFullscreenLnet/minecraft/client/util/Window;currentFullscreen:Zintermediary field_5177Lnet/minecraft/class_1041;field_5177:Zofficial lLezq;l:Z
-
x
private int x- Mappings:
Namespace Name Mixin selector named xLnet/minecraft/client/util/Window;x:Iintermediary field_5183Lnet/minecraft/class_1041;field_5183:Iofficial mLezq;m:I
-
y
private int y- Mappings:
Namespace Name Mixin selector named yLnet/minecraft/client/util/Window;y:Iintermediary field_5198Lnet/minecraft/class_1041;field_5198:Iofficial nLezq;n:I
-
width
private int width- Mappings:
Namespace Name Mixin selector named widthLnet/minecraft/client/util/Window;width:Iintermediary field_5182Lnet/minecraft/class_1041;field_5182:Iofficial oLezq;o:I
-
height
private int height- Mappings:
Namespace Name Mixin selector named heightLnet/minecraft/client/util/Window;height:Iintermediary field_5197Lnet/minecraft/class_1041;field_5197:Iofficial pLezq;p:I
-
framebufferWidth
private int framebufferWidth- Mappings:
Namespace Name Mixin selector named framebufferWidthLnet/minecraft/client/util/Window;framebufferWidth:Iintermediary field_5181Lnet/minecraft/class_1041;field_5181:Iofficial qLezq;q:I
-
framebufferHeight
private int framebufferHeight- Mappings:
Namespace Name Mixin selector named framebufferHeightLnet/minecraft/client/util/Window;framebufferHeight:Iintermediary field_5196Lnet/minecraft/class_1041;field_5196:Iofficial rLezq;r:I
-
scaledWidth
private int scaledWidth- Mappings:
Namespace Name Mixin selector named scaledWidthLnet/minecraft/client/util/Window;scaledWidth:Iintermediary field_5180Lnet/minecraft/class_1041;field_5180:Iofficial sLezq;s:I
-
scaledHeight
private int scaledHeight- Mappings:
Namespace Name Mixin selector named scaledHeightLnet/minecraft/client/util/Window;scaledHeight:Iintermediary field_5194Lnet/minecraft/class_1041;field_5194:Iofficial tLezq;t:I
-
scaleFactor
private double scaleFactor- Mappings:
Namespace Name Mixin selector named scaleFactorLnet/minecraft/client/util/Window;scaleFactor:Dintermediary field_5179Lnet/minecraft/class_1041;field_5179:Dofficial uLezq;u:D
-
phase
- Mappings:
Namespace Name Mixin selector named phaseLnet/minecraft/client/util/Window;phase:Ljava/lang/String;intermediary field_5192Lnet/minecraft/class_1041;field_5192:Ljava/lang/String;official vLezq;v:Ljava/lang/String;
-
videoModeDirty
private boolean videoModeDirty- Mappings:
Namespace Name Mixin selector named videoModeDirtyLnet/minecraft/client/util/Window;videoModeDirty:Zintermediary field_5186Lnet/minecraft/class_1041;field_5186:Zofficial wLezq;w:Z
-
framerateLimit
private int framerateLimit- Mappings:
Namespace Name Mixin selector named framerateLimitLnet/minecraft/client/util/Window;framerateLimit:Iintermediary field_16238Lnet/minecraft/class_1041;field_16238:Iofficial xLezq;x:I
-
vsync
private boolean vsync- Mappings:
Namespace Name Mixin selector named vsyncLnet/minecraft/client/util/Window;vsync:Zintermediary field_16517Lnet/minecraft/class_1041;field_16517:Zofficial yLezq;y:Z
-
-
Constructor Details
-
Window
public Window(WindowEventHandler eventHandler, MonitorTracker monitorTracker, WindowSettings settings, @Nullable @Nullable String videoMode, 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;)Vintermediary <init>Lnet/minecraft/class_1041;<init>(Lnet/minecraft/class_3678;Lnet/minecraft/class_323;Lnet/minecraft/class_543;Ljava/lang/String;Ljava/lang/String;)Vofficial <init>Lezq;<init>(Lezr;Lezo;Lezd;Ljava/lang/String;Ljava/lang/String;)V
-
-
Method Details
-
getRefreshRate
public int getRefreshRate()- Mappings:
Namespace Name Mixin selector named getRefreshRateLnet/minecraft/client/util/Window;getRefreshRate()Iintermediary method_22092Lnet/minecraft/class_1041;method_22092()Iofficial aLezq;a()I
-
shouldClose
public boolean shouldClose()- Mappings:
Namespace Name Mixin selector named shouldCloseLnet/minecraft/client/util/Window;shouldClose()Zintermediary method_22093Lnet/minecraft/class_1041;method_22093()Zofficial bLezq;b()Z
-
acceptError
- Mappings:
Namespace Name Mixin selector named acceptErrorLnet/minecraft/client/util/Window;acceptError(Ljava/util/function/BiConsumer;)Vintermediary method_4492Lnet/minecraft/class_1041;method_4492(Ljava/util/function/BiConsumer;)Vofficial aLezq;a(Ljava/util/function/BiConsumer;)V
-
setIcon
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named setIconLnet/minecraft/client/util/Window;setIcon(Lnet/minecraft/resource/ResourcePack;Lnet/minecraft/client/util/Icons;)Vintermediary method_4491Lnet/minecraft/class_1041;method_4491(Lnet/minecraft/class_3262;Lnet/minecraft/class_8518;)Vofficial aLezq;a(Lasi;Lezg;)V
-
setPhase
- Mappings:
Namespace Name Mixin selector named setPhaseLnet/minecraft/client/util/Window;setPhase(Ljava/lang/String;)Vintermediary method_4474Lnet/minecraft/class_1041;method_4474(Ljava/lang/String;)Vofficial aLezq;a(Ljava/lang/String;)V
-
throwOnGlError
private void throwOnGlError()- Mappings:
Namespace Name Mixin selector named throwOnGlErrorLnet/minecraft/client/util/Window;throwOnGlError()Vintermediary method_4481Lnet/minecraft/class_1041;method_4481()Vofficial uLezq;u()V
-
throwGlError
private static void throwGlError(int error, long description) - Mappings:
Namespace Name Mixin selector named throwGlErrorLnet/minecraft/client/util/Window;throwGlError(IJ)Vintermediary method_4501Lnet/minecraft/class_1041;method_4501(IJ)Vofficial bLezq;b(IJ)V
-
logGlError
public void logGlError(int error, long description) - Mappings:
Namespace Name Mixin selector named logGlErrorLnet/minecraft/client/util/Window;logGlError(IJ)Vintermediary method_4482Lnet/minecraft/class_1041;method_4482(IJ)Vofficial aLezq;a(IJ)V
-
logOnGlError
public void logOnGlError()- Mappings:
Namespace Name Mixin selector named logOnGlErrorLnet/minecraft/client/util/Window;logOnGlError()Vintermediary method_4513Lnet/minecraft/class_1041;method_4513()Vofficial cLezq;c()V
-
setVsync
public void setVsync(boolean vsync) - Mappings:
Namespace Name Mixin selector named setVsyncLnet/minecraft/client/util/Window;setVsync(Z)Vintermediary method_4497Lnet/minecraft/class_1041;method_4497(Z)Vofficial aLezq;a(Z)V
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
onWindowPosChanged
private void onWindowPosChanged(long window, int x, int y) - Mappings:
Namespace Name Mixin selector named onWindowPosChangedLnet/minecraft/client/util/Window;onWindowPosChanged(JII)Vintermediary method_4478Lnet/minecraft/class_1041;method_4478(JII)Vofficial aLezq;a(JII)V
-
onFramebufferSizeChanged
private void onFramebufferSizeChanged(long window, int width, int height) - Mappings:
Namespace Name Mixin selector named onFramebufferSizeChangedLnet/minecraft/client/util/Window;onFramebufferSizeChanged(JII)Vintermediary method_4504Lnet/minecraft/class_1041;method_4504(JII)Vofficial bLezq;b(JII)V
-
updateFramebufferSize
private void updateFramebufferSize()- Mappings:
Namespace Name Mixin selector named updateFramebufferSizeLnet/minecraft/client/util/Window;updateFramebufferSize()Vintermediary method_4483Lnet/minecraft/class_1041;method_4483()Vofficial vLezq;v()V
-
onWindowSizeChanged
private void onWindowSizeChanged(long window, int width, int height) - Mappings:
Namespace Name Mixin selector named onWindowSizeChangedLnet/minecraft/client/util/Window;onWindowSizeChanged(JII)Vintermediary method_4488Lnet/minecraft/class_1041;method_4488(JII)Vofficial cLezq;c(JII)V
-
onWindowFocusChanged
private void onWindowFocusChanged(long window, boolean focused) - Mappings:
Namespace Name Mixin selector named onWindowFocusChangedLnet/minecraft/client/util/Window;onWindowFocusChanged(JZ)Vintermediary method_4494Lnet/minecraft/class_1041;method_4494(JZ)Vofficial aLezq;a(JZ)V
-
onCursorEnterChanged
private void onCursorEnterChanged(long window, boolean entered) - Mappings:
Namespace Name Mixin selector named onCursorEnterChangedLnet/minecraft/client/util/Window;onCursorEnterChanged(JZ)Vintermediary method_30132Lnet/minecraft/class_1041;method_30132(JZ)Vofficial bLezq;b(JZ)V
-
setFramerateLimit
public void setFramerateLimit(int framerateLimit) - Mappings:
Namespace Name Mixin selector named setFramerateLimitLnet/minecraft/client/util/Window;setFramerateLimit(I)Vintermediary method_15999Lnet/minecraft/class_1041;method_15999(I)Vofficial aLezq;a(I)V
-
getFramerateLimit
public int getFramerateLimit()- Mappings:
Namespace Name Mixin selector named getFramerateLimitLnet/minecraft/client/util/Window;getFramerateLimit()Iintermediary method_16000Lnet/minecraft/class_1041;method_16000()Iofficial dLezq;d()I
-
swapBuffers
public void swapBuffers()- Mappings:
Namespace Name Mixin selector named swapBuffersLnet/minecraft/client/util/Window;swapBuffers()Vintermediary method_15998Lnet/minecraft/class_1041;method_15998()Vofficial eLezq;e()V
-
getVideoMode
- Mappings:
Namespace Name Mixin selector named getVideoModeLnet/minecraft/client/util/Window;getVideoMode()Ljava/util/Optional;intermediary method_4511Lnet/minecraft/class_1041;method_4511()Ljava/util/Optional;official fLezq;f()Ljava/util/Optional;
-
setVideoMode
- Mappings:
Namespace Name Mixin selector named setVideoModeLnet/minecraft/client/util/Window;setVideoMode(Ljava/util/Optional;)Vintermediary method_4505Lnet/minecraft/class_1041;method_4505(Ljava/util/Optional;)Vofficial aLezq;a(Ljava/util/Optional;)V
-
applyVideoMode
public void applyVideoMode()- Mappings:
Namespace Name Mixin selector named applyVideoModeLnet/minecraft/client/util/Window;applyVideoMode()Vintermediary method_4475Lnet/minecraft/class_1041;method_4475()Vofficial gLezq;g()V
-
updateWindowRegion
private void updateWindowRegion()- Mappings:
Namespace Name Mixin selector named updateWindowRegionLnet/minecraft/client/util/Window;updateWindowRegion()Vintermediary method_4479Lnet/minecraft/class_1041;method_4479()Vofficial wLezq;w()V
-
toggleFullscreen
public void toggleFullscreen()- Mappings:
Namespace Name Mixin selector named toggleFullscreenLnet/minecraft/client/util/Window;toggleFullscreen()Vintermediary method_4500Lnet/minecraft/class_1041;method_4500()Vofficial hLezq;h()V
-
setWindowedSize
public void setWindowedSize(int width, int height) - Mappings:
Namespace Name Mixin selector named setWindowedSizeLnet/minecraft/client/util/Window;setWindowedSize(II)Vintermediary method_36813Lnet/minecraft/class_1041;method_36813(II)Vofficial aLezq;a(II)V
-
updateFullscreen
private void updateFullscreen(boolean vsync) - Mappings:
Namespace Name Mixin selector named updateFullscreenLnet/minecraft/client/util/Window;updateFullscreen(Z)Vintermediary method_4485Lnet/minecraft/class_1041;method_4485(Z)Vofficial cLezq;c(Z)V
-
calculateScaleFactor
public int calculateScaleFactor(int guiScale, boolean forceUnicodeFont) - Mappings:
Namespace Name Mixin selector named calculateScaleFactorLnet/minecraft/client/util/Window;calculateScaleFactor(IZ)Iintermediary method_4476Lnet/minecraft/class_1041;method_4476(IZ)Iofficial aLezq;a(IZ)I
-
setScaleFactor
public void setScaleFactor(double scaleFactor) - Mappings:
Namespace Name Mixin selector named setScaleFactorLnet/minecraft/client/util/Window;setScaleFactor(D)Vintermediary method_15997Lnet/minecraft/class_1041;method_15997(D)Vofficial aLezq;a(D)V
-
setTitle
- Mappings:
Namespace Name Mixin selector named setTitleLnet/minecraft/client/util/Window;setTitle(Ljava/lang/String;)Vintermediary method_24286Lnet/minecraft/class_1041;method_24286(Ljava/lang/String;)Vofficial bLezq;b(Ljava/lang/String;)V
-
getHandle
public long getHandle()- Mappings:
Namespace Name Mixin selector named getHandleLnet/minecraft/client/util/Window;getHandle()Jintermediary method_4490Lnet/minecraft/class_1041;method_4490()Jofficial iLezq;i()J
-
isFullscreen
public boolean isFullscreen()- Mappings:
Namespace Name Mixin selector named isFullscreenLnet/minecraft/client/util/Window;isFullscreen()Zintermediary method_4498Lnet/minecraft/class_1041;method_4498()Zofficial jLezq;j()Z
-
getFramebufferWidth
public int getFramebufferWidth()- Mappings:
Namespace Name Mixin selector named getFramebufferWidthLnet/minecraft/client/util/Window;getFramebufferWidth()Iintermediary method_4489Lnet/minecraft/class_1041;method_4489()Iofficial kLezq;k()I
-
getFramebufferHeight
public int getFramebufferHeight()- Mappings:
Namespace Name Mixin selector named getFramebufferHeightLnet/minecraft/client/util/Window;getFramebufferHeight()Iintermediary method_4506Lnet/minecraft/class_1041;method_4506()Iofficial lLezq;l()I
-
setFramebufferWidth
public void setFramebufferWidth(int framebufferWidth) - Mappings:
Namespace Name Mixin selector named setFramebufferWidthLnet/minecraft/client/util/Window;setFramebufferWidth(I)Vintermediary method_35642Lnet/minecraft/class_1041;method_35642(I)Vofficial bLezq;b(I)V
-
setFramebufferHeight
public void setFramebufferHeight(int framebufferHeight) - Mappings:
Namespace Name Mixin selector named setFramebufferHeightLnet/minecraft/client/util/Window;setFramebufferHeight(I)Vintermediary method_35643Lnet/minecraft/class_1041;method_35643(I)Vofficial cLezq;c(I)V
-
getWidth
public int getWidth()- Mappings:
Namespace Name Mixin selector named getWidthLnet/minecraft/client/util/Window;getWidth()Iintermediary method_4480Lnet/minecraft/class_1041;method_4480()Iofficial mLezq;m()I
-
getHeight
public int getHeight()- Mappings:
Namespace Name Mixin selector named getHeightLnet/minecraft/client/util/Window;getHeight()Iintermediary method_4507Lnet/minecraft/class_1041;method_4507()Iofficial nLezq;n()I
-
getScaledWidth
public int getScaledWidth()- Mappings:
Namespace Name Mixin selector named getScaledWidthLnet/minecraft/client/util/Window;getScaledWidth()Iintermediary method_4486Lnet/minecraft/class_1041;method_4486()Iofficial oLezq;o()I
-
getScaledHeight
public int getScaledHeight()- Mappings:
Namespace Name Mixin selector named getScaledHeightLnet/minecraft/client/util/Window;getScaledHeight()Iintermediary method_4502Lnet/minecraft/class_1041;method_4502()Iofficial pLezq;p()I
-
getX
public int getX()- Mappings:
Namespace Name Mixin selector named getXLnet/minecraft/client/util/Window;getX()Iintermediary method_4499Lnet/minecraft/class_1041;method_4499()Iofficial qLezq;q()I
-
getY
public int getY()- Mappings:
Namespace Name Mixin selector named getYLnet/minecraft/client/util/Window;getY()Iintermediary method_4477Lnet/minecraft/class_1041;method_4477()Iofficial rLezq;r()I
-
getScaleFactor
public double getScaleFactor()- Mappings:
Namespace Name Mixin selector named getScaleFactorLnet/minecraft/client/util/Window;getScaleFactor()Dintermediary method_4495Lnet/minecraft/class_1041;method_4495()Dofficial sLezq;s()D
-
getMonitor
- Mappings:
Namespace Name Mixin selector named getMonitorLnet/minecraft/client/util/Window;getMonitor()Lnet/minecraft/client/util/Monitor;intermediary method_20831Lnet/minecraft/class_1041;method_20831()Lnet/minecraft/class_313;official tLezq;t()Lezl;
-
setRawMouseMotion
public void setRawMouseMotion(boolean rawMouseMotion) - Mappings:
Namespace Name Mixin selector named setRawMouseMotionLnet/minecraft/client/util/Window;setRawMouseMotion(Z)Vintermediary method_21668Lnet/minecraft/class_1041;method_21668(Z)Vofficial bLezq;b(Z)V
-