Package net.minecraft.client.util
Class Window
java.lang.Object
net.minecraft.client.util.Window
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name intermediary net/minecraft/class_1041official ehfnamed net/minecraft/client/util/Window
-
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 intermediary field_5178Lnet/minecraft/class_1041;field_5178:Lorg/slf4j/Logger;official aLehf;a:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/client/util/Window;LOGGER:Lorg/slf4j/Logger;
-
errorCallback
- Mappings:
Namespace Name Mixin selector intermediary field_5190Lnet/minecraft/class_1041;field_5190:Lorg/lwjgl/glfw/GLFWErrorCallback;official bLehf;b:Lorg/lwjgl/glfw/GLFWErrorCallback;named errorCallbackLnet/minecraft/client/util/Window;errorCallback:Lorg/lwjgl/glfw/GLFWErrorCallback;
-
eventHandler
- Mappings:
Namespace Name Mixin selector intermediary field_5176Lnet/minecraft/class_1041;field_5176:Lnet/minecraft/class_3678;official cLehf;c:Lehg;named eventHandlerLnet/minecraft/client/util/Window;eventHandler:Lnet/minecraft/client/WindowEventHandler;
-
monitorTracker
- Mappings:
Namespace Name Mixin selector intermediary field_5195Lnet/minecraft/class_1041;field_5195:Lnet/minecraft/class_323;official dLehf;d:Lehd;named monitorTrackerLnet/minecraft/client/util/Window;monitorTracker:Lnet/minecraft/client/util/MonitorTracker;
-
handle
private final long handle- Mappings:
Namespace Name Mixin selector intermediary field_5187Lnet/minecraft/class_1041;field_5187:Jofficial eLehf;e:Jnamed handleLnet/minecraft/client/util/Window;handle:J
-
windowedX
private int windowedX- Mappings:
Namespace Name Mixin selector intermediary field_5175Lnet/minecraft/class_1041;field_5175:Iofficial fLehf;f:Inamed windowedXLnet/minecraft/client/util/Window;windowedX:I
-
windowedY
private int windowedY- Mappings:
Namespace Name Mixin selector intermediary field_5185Lnet/minecraft/class_1041;field_5185:Iofficial gLehf;g:Inamed windowedYLnet/minecraft/client/util/Window;windowedY:I
-
windowedWidth
private int windowedWidth- Mappings:
Namespace Name Mixin selector intermediary field_5174Lnet/minecraft/class_1041;field_5174:Iofficial hLehf;h:Inamed windowedWidthLnet/minecraft/client/util/Window;windowedWidth:I
-
windowedHeight
private int windowedHeight- Mappings:
Namespace Name Mixin selector intermediary field_5184Lnet/minecraft/class_1041;field_5184:Iofficial iLehf;i:Inamed windowedHeightLnet/minecraft/client/util/Window;windowedHeight:I
-
videoMode
- Mappings:
Namespace Name Mixin selector intermediary field_5193Lnet/minecraft/class_1041;field_5193:Ljava/util/Optional;official jLehf;j:Ljava/util/Optional;named videoModeLnet/minecraft/client/util/Window;videoMode:Ljava/util/Optional;
-
fullscreen
private boolean fullscreen- Mappings:
Namespace Name Mixin selector intermediary field_5191Lnet/minecraft/class_1041;field_5191:Zofficial kLehf;k:Znamed fullscreenLnet/minecraft/client/util/Window;fullscreen:Z
-
currentFullscreen
private boolean currentFullscreen- Mappings:
Namespace Name Mixin selector intermediary field_5177Lnet/minecraft/class_1041;field_5177:Zofficial lLehf;l:Znamed currentFullscreenLnet/minecraft/client/util/Window;currentFullscreen:Z
-
x
private int x- Mappings:
Namespace Name Mixin selector intermediary field_5183Lnet/minecraft/class_1041;field_5183:Iofficial mLehf;m:Inamed xLnet/minecraft/client/util/Window;x:I
-
y
private int y- Mappings:
Namespace Name Mixin selector intermediary field_5198Lnet/minecraft/class_1041;field_5198:Iofficial nLehf;n:Inamed yLnet/minecraft/client/util/Window;y:I
-
width
private int width- Mappings:
Namespace Name Mixin selector intermediary field_5182Lnet/minecraft/class_1041;field_5182:Iofficial oLehf;o:Inamed widthLnet/minecraft/client/util/Window;width:I
-
height
private int height- Mappings:
Namespace Name Mixin selector intermediary field_5197Lnet/minecraft/class_1041;field_5197:Iofficial pLehf;p:Inamed heightLnet/minecraft/client/util/Window;height:I
-
framebufferWidth
private int framebufferWidth- Mappings:
Namespace Name Mixin selector intermediary field_5181Lnet/minecraft/class_1041;field_5181:Iofficial qLehf;q:Inamed framebufferWidthLnet/minecraft/client/util/Window;framebufferWidth:I
-
framebufferHeight
private int framebufferHeight- Mappings:
Namespace Name Mixin selector intermediary field_5196Lnet/minecraft/class_1041;field_5196:Iofficial rLehf;r:Inamed framebufferHeightLnet/minecraft/client/util/Window;framebufferHeight:I
-
scaledWidth
private int scaledWidth- Mappings:
Namespace Name Mixin selector intermediary field_5180Lnet/minecraft/class_1041;field_5180:Iofficial sLehf;s:Inamed scaledWidthLnet/minecraft/client/util/Window;scaledWidth:I
-
scaledHeight
private int scaledHeight- Mappings:
Namespace Name Mixin selector intermediary field_5194Lnet/minecraft/class_1041;field_5194:Iofficial tLehf;t:Inamed scaledHeightLnet/minecraft/client/util/Window;scaledHeight:I
-
scaleFactor
private double scaleFactor- Mappings:
Namespace Name Mixin selector intermediary field_5179Lnet/minecraft/class_1041;field_5179:Dofficial uLehf;u:Dnamed scaleFactorLnet/minecraft/client/util/Window;scaleFactor:D
-
phase
- Mappings:
Namespace Name Mixin selector intermediary field_5192Lnet/minecraft/class_1041;field_5192:Ljava/lang/String;official vLehf;v:Ljava/lang/String;named phaseLnet/minecraft/client/util/Window;phase:Ljava/lang/String;
-
videoModeDirty
private boolean videoModeDirty- Mappings:
Namespace Name Mixin selector intermediary field_5186Lnet/minecraft/class_1041;field_5186:Zofficial wLehf;w:Znamed videoModeDirtyLnet/minecraft/client/util/Window;videoModeDirty:Z
-
framerateLimit
private int framerateLimit- Mappings:
Namespace Name Mixin selector intermediary field_16238Lnet/minecraft/class_1041;field_16238:Iofficial xLehf;x:Inamed framerateLimitLnet/minecraft/client/util/Window;framerateLimit:I
-
vsync
private boolean vsync- Mappings:
Namespace Name Mixin selector intermediary field_16517Lnet/minecraft/class_1041;field_16517:Zofficial yLehf;y:Znamed vsyncLnet/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 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;)Vofficial <init>Lehf;<init>(Lehg;Lehd;Legs;Ljava/lang/String;Ljava/lang/String;)Vnamed <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 intermediary method_22092Lnet/minecraft/class_1041;method_22092()Iofficial aLehf;a()Inamed getRefreshRateLnet/minecraft/client/util/Window;getRefreshRate()I
-
shouldClose
public boolean shouldClose()- Mappings:
Namespace Name Mixin selector intermediary method_22093Lnet/minecraft/class_1041;method_22093()Zofficial bLehf;b()Znamed shouldCloseLnet/minecraft/client/util/Window;shouldClose()Z
-
acceptError
- Mappings:
Namespace Name Mixin selector intermediary method_4492Lnet/minecraft/class_1041;method_4492(Ljava/util/function/BiConsumer;)Vofficial aLehf;a(Ljava/util/function/BiConsumer;)Vnamed acceptErrorLnet/minecraft/client/util/Window;acceptError(Ljava/util/function/BiConsumer;)V
-
setIcon
- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary method_4491Lnet/minecraft/class_1041;method_4491(Lnet/minecraft/class_3262;Lnet/minecraft/class_8518;)Vofficial aLehf;a(Lajl;Legv;)Vnamed setIconLnet/minecraft/client/util/Window;setIcon(Lnet/minecraft/resource/ResourcePack;Lnet/minecraft/client/util/Icons;)V
-
setPhase
- Mappings:
Namespace Name Mixin selector intermediary method_4474Lnet/minecraft/class_1041;method_4474(Ljava/lang/String;)Vofficial aLehf;a(Ljava/lang/String;)Vnamed setPhaseLnet/minecraft/client/util/Window;setPhase(Ljava/lang/String;)V
-
throwOnGlError
private void throwOnGlError()- Mappings:
Namespace Name Mixin selector intermediary method_4481Lnet/minecraft/class_1041;method_4481()Vofficial uLehf;u()Vnamed throwOnGlErrorLnet/minecraft/client/util/Window;throwOnGlError()V
-
throwGlError
private static void throwGlError(int error, long description) - Mappings:
Namespace Name Mixin selector intermediary method_4501Lnet/minecraft/class_1041;method_4501(IJ)Vofficial bLehf;b(IJ)Vnamed throwGlErrorLnet/minecraft/client/util/Window;throwGlError(IJ)V
-
logGlError
public void logGlError(int error, long description) - Mappings:
Namespace Name Mixin selector intermediary method_4482Lnet/minecraft/class_1041;method_4482(IJ)Vofficial aLehf;a(IJ)Vnamed logGlErrorLnet/minecraft/client/util/Window;logGlError(IJ)V
-
logOnGlError
public void logOnGlError()- Mappings:
Namespace Name Mixin selector intermediary method_4513Lnet/minecraft/class_1041;method_4513()Vofficial cLehf;c()Vnamed logOnGlErrorLnet/minecraft/client/util/Window;logOnGlError()V
-
setVsync
public void setVsync(boolean vsync) - Mappings:
Namespace Name Mixin selector intermediary method_4497Lnet/minecraft/class_1041;method_4497(Z)Vofficial aLehf;a(Z)Vnamed setVsyncLnet/minecraft/client/util/Window;setVsync(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 intermediary method_4478Lnet/minecraft/class_1041;method_4478(JII)Vofficial aLehf;a(JII)Vnamed onWindowPosChangedLnet/minecraft/client/util/Window;onWindowPosChanged(JII)V
-
onFramebufferSizeChanged
private void onFramebufferSizeChanged(long window, int width, int height) - Mappings:
Namespace Name Mixin selector intermediary method_4504Lnet/minecraft/class_1041;method_4504(JII)Vofficial bLehf;b(JII)Vnamed onFramebufferSizeChangedLnet/minecraft/client/util/Window;onFramebufferSizeChanged(JII)V
-
updateFramebufferSize
private void updateFramebufferSize()- Mappings:
Namespace Name Mixin selector intermediary method_4483Lnet/minecraft/class_1041;method_4483()Vofficial vLehf;v()Vnamed updateFramebufferSizeLnet/minecraft/client/util/Window;updateFramebufferSize()V
-
onWindowSizeChanged
private void onWindowSizeChanged(long window, int width, int height) - Mappings:
Namespace Name Mixin selector intermediary method_4488Lnet/minecraft/class_1041;method_4488(JII)Vofficial cLehf;c(JII)Vnamed onWindowSizeChangedLnet/minecraft/client/util/Window;onWindowSizeChanged(JII)V
-
onWindowFocusChanged
private void onWindowFocusChanged(long window, boolean focused) - Mappings:
Namespace Name Mixin selector intermediary method_4494Lnet/minecraft/class_1041;method_4494(JZ)Vofficial aLehf;a(JZ)Vnamed onWindowFocusChangedLnet/minecraft/client/util/Window;onWindowFocusChanged(JZ)V
-
onCursorEnterChanged
private void onCursorEnterChanged(long window, boolean entered) - Mappings:
Namespace Name Mixin selector intermediary method_30132Lnet/minecraft/class_1041;method_30132(JZ)Vofficial bLehf;b(JZ)Vnamed onCursorEnterChangedLnet/minecraft/client/util/Window;onCursorEnterChanged(JZ)V
-
setFramerateLimit
public void setFramerateLimit(int framerateLimit) - Mappings:
Namespace Name Mixin selector intermediary method_15999Lnet/minecraft/class_1041;method_15999(I)Vofficial aLehf;a(I)Vnamed setFramerateLimitLnet/minecraft/client/util/Window;setFramerateLimit(I)V
-
getFramerateLimit
public int getFramerateLimit()- Mappings:
Namespace Name Mixin selector intermediary method_16000Lnet/minecraft/class_1041;method_16000()Iofficial dLehf;d()Inamed getFramerateLimitLnet/minecraft/client/util/Window;getFramerateLimit()I
-
swapBuffers
public void swapBuffers()- Mappings:
Namespace Name Mixin selector intermediary method_15998Lnet/minecraft/class_1041;method_15998()Vofficial eLehf;e()Vnamed swapBuffersLnet/minecraft/client/util/Window;swapBuffers()V
-
getVideoMode
- Mappings:
Namespace Name Mixin selector intermediary method_4511Lnet/minecraft/class_1041;method_4511()Ljava/util/Optional;official fLehf;f()Ljava/util/Optional;named getVideoModeLnet/minecraft/client/util/Window;getVideoMode()Ljava/util/Optional;
-
setVideoMode
- Mappings:
Namespace Name Mixin selector intermediary method_4505Lnet/minecraft/class_1041;method_4505(Ljava/util/Optional;)Vofficial aLehf;a(Ljava/util/Optional;)Vnamed setVideoModeLnet/minecraft/client/util/Window;setVideoMode(Ljava/util/Optional;)V
-
applyVideoMode
public void applyVideoMode()- Mappings:
Namespace Name Mixin selector intermediary method_4475Lnet/minecraft/class_1041;method_4475()Vofficial gLehf;g()Vnamed applyVideoModeLnet/minecraft/client/util/Window;applyVideoMode()V
-
updateWindowRegion
private void updateWindowRegion()- Mappings:
Namespace Name Mixin selector intermediary method_4479Lnet/minecraft/class_1041;method_4479()Vofficial wLehf;w()Vnamed updateWindowRegionLnet/minecraft/client/util/Window;updateWindowRegion()V
-
toggleFullscreen
public void toggleFullscreen()- Mappings:
Namespace Name Mixin selector intermediary method_4500Lnet/minecraft/class_1041;method_4500()Vofficial hLehf;h()Vnamed toggleFullscreenLnet/minecraft/client/util/Window;toggleFullscreen()V
-
setWindowedSize
public void setWindowedSize(int width, int height) - Mappings:
Namespace Name Mixin selector intermediary method_36813Lnet/minecraft/class_1041;method_36813(II)Vofficial aLehf;a(II)Vnamed setWindowedSizeLnet/minecraft/client/util/Window;setWindowedSize(II)V
-
updateFullscreen
private void updateFullscreen(boolean vsync) - Mappings:
Namespace Name Mixin selector intermediary method_4485Lnet/minecraft/class_1041;method_4485(Z)Vofficial cLehf;c(Z)Vnamed updateFullscreenLnet/minecraft/client/util/Window;updateFullscreen(Z)V
-
calculateScaleFactor
public int calculateScaleFactor(int guiScale, boolean forceUnicodeFont) - Mappings:
Namespace Name Mixin selector intermediary method_4476Lnet/minecraft/class_1041;method_4476(IZ)Iofficial aLehf;a(IZ)Inamed calculateScaleFactorLnet/minecraft/client/util/Window;calculateScaleFactor(IZ)I
-
setScaleFactor
public void setScaleFactor(double scaleFactor) - Mappings:
Namespace Name Mixin selector intermediary method_15997Lnet/minecraft/class_1041;method_15997(D)Vofficial aLehf;a(D)Vnamed setScaleFactorLnet/minecraft/client/util/Window;setScaleFactor(D)V
-
setTitle
- Mappings:
Namespace Name Mixin selector intermediary method_24286Lnet/minecraft/class_1041;method_24286(Ljava/lang/String;)Vofficial bLehf;b(Ljava/lang/String;)Vnamed setTitleLnet/minecraft/client/util/Window;setTitle(Ljava/lang/String;)V
-
getHandle
public long getHandle()- Mappings:
Namespace Name Mixin selector intermediary method_4490Lnet/minecraft/class_1041;method_4490()Jofficial iLehf;i()Jnamed getHandleLnet/minecraft/client/util/Window;getHandle()J
-
isFullscreen
public boolean isFullscreen()- Mappings:
Namespace Name Mixin selector intermediary method_4498Lnet/minecraft/class_1041;method_4498()Zofficial jLehf;j()Znamed isFullscreenLnet/minecraft/client/util/Window;isFullscreen()Z
-
getFramebufferWidth
public int getFramebufferWidth()- Mappings:
Namespace Name Mixin selector intermediary method_4489Lnet/minecraft/class_1041;method_4489()Iofficial kLehf;k()Inamed getFramebufferWidthLnet/minecraft/client/util/Window;getFramebufferWidth()I
-
getFramebufferHeight
public int getFramebufferHeight()- Mappings:
Namespace Name Mixin selector intermediary method_4506Lnet/minecraft/class_1041;method_4506()Iofficial lLehf;l()Inamed getFramebufferHeightLnet/minecraft/client/util/Window;getFramebufferHeight()I
-
setFramebufferWidth
public void setFramebufferWidth(int framebufferWidth) - Mappings:
Namespace Name Mixin selector intermediary method_35642Lnet/minecraft/class_1041;method_35642(I)Vofficial bLehf;b(I)Vnamed setFramebufferWidthLnet/minecraft/client/util/Window;setFramebufferWidth(I)V
-
setFramebufferHeight
public void setFramebufferHeight(int framebufferHeight) - Mappings:
Namespace Name Mixin selector intermediary method_35643Lnet/minecraft/class_1041;method_35643(I)Vofficial cLehf;c(I)Vnamed setFramebufferHeightLnet/minecraft/client/util/Window;setFramebufferHeight(I)V
-
getWidth
public int getWidth()- Mappings:
Namespace Name Mixin selector intermediary method_4480Lnet/minecraft/class_1041;method_4480()Iofficial mLehf;m()Inamed getWidthLnet/minecraft/client/util/Window;getWidth()I
-
getHeight
public int getHeight()- Mappings:
Namespace Name Mixin selector intermediary method_4507Lnet/minecraft/class_1041;method_4507()Iofficial nLehf;n()Inamed getHeightLnet/minecraft/client/util/Window;getHeight()I
-
getScaledWidth
public int getScaledWidth()- Mappings:
Namespace Name Mixin selector intermediary method_4486Lnet/minecraft/class_1041;method_4486()Iofficial oLehf;o()Inamed getScaledWidthLnet/minecraft/client/util/Window;getScaledWidth()I
-
getScaledHeight
public int getScaledHeight()- Mappings:
Namespace Name Mixin selector intermediary method_4502Lnet/minecraft/class_1041;method_4502()Iofficial pLehf;p()Inamed getScaledHeightLnet/minecraft/client/util/Window;getScaledHeight()I
-
getX
public int getX()- Mappings:
Namespace Name Mixin selector intermediary method_4499Lnet/minecraft/class_1041;method_4499()Iofficial qLehf;q()Inamed getXLnet/minecraft/client/util/Window;getX()I
-
getY
public int getY()- Mappings:
Namespace Name Mixin selector intermediary method_4477Lnet/minecraft/class_1041;method_4477()Iofficial rLehf;r()Inamed getYLnet/minecraft/client/util/Window;getY()I
-
getScaleFactor
public double getScaleFactor()- Mappings:
Namespace Name Mixin selector intermediary method_4495Lnet/minecraft/class_1041;method_4495()Dofficial sLehf;s()Dnamed getScaleFactorLnet/minecraft/client/util/Window;getScaleFactor()D
-
getMonitor
- Mappings:
Namespace Name Mixin selector intermediary method_20831Lnet/minecraft/class_1041;method_20831()Lnet/minecraft/class_313;official tLehf;t()Leha;named getMonitorLnet/minecraft/client/util/Window;getMonitor()Lnet/minecraft/client/util/Monitor;
-
setRawMouseMotion
public void setRawMouseMotion(boolean rawMouseMotion) - Mappings:
Namespace Name Mixin selector intermediary method_21668Lnet/minecraft/class_1041;method_21668(Z)Vofficial bLehf;b(Z)Vnamed setRawMouseMotionLnet/minecraft/client/util/Window;setRawMouseMotion(Z)V
-