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 fam
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final GLFWErrorCallbackprivate final WindowEventHandlerstatic final intstatic final intprivate 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()intintintstatic StringlongintintintintdoubleintgetWidth()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 cLfam;c:Lorg/slf4j/Logger;
-
field_52250
public static final int field_52250- See Also:
- Mappings:
Namespace Name Mixin selector named field_52250Lnet/minecraft/client/util/Window;field_52250:Iintermediary field_52250Lnet/minecraft/class_1041;field_52250:Iofficial aLfam;a:I
-
field_52251
public static final int field_52251- See Also:
- Mappings:
Namespace Name Mixin selector named field_52251Lnet/minecraft/client/util/Window;field_52251:Iintermediary field_52251Lnet/minecraft/class_1041;field_52251:Iofficial bLfam;b:I
-
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 dLfam;d: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 eLfam;e:Lfan;
-
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 fLfam;f:Lfak;
-
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 gLfam;g: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 hLfam;h: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 iLfam;i: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 jLfam;j: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 kLfam;k: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 lLfam;l: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 mLfam;m: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 nLfam;n: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 oLfam;o: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 pLfam;p: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 qLfam;q: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 rLfam;r: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 sLfam;s: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 tLfam;t: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 uLfam;u: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 vLfam;v: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 wLfam;w: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 xLfam;x: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 yLfam;y: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 zLfam;z: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 ALfam;A: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>Lfam;<init>(Lfan;Lfak;Lfaa;Ljava/lang/String;Ljava/lang/String;)V
-
-
Method Details
-
getGlfwPlatform
- Mappings:
Namespace Name Mixin selector named getGlfwPlatformLnet/minecraft/client/util/Window;getGlfwPlatform()Ljava/lang/String;intermediary method_60793Lnet/minecraft/class_1041;method_60793()Ljava/lang/String;official aLfam;a()Ljava/lang/String;
-
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 bLfam;b()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 cLfam;c()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 aLfam;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 aLfam;a(Lasq;Lfad;)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 aLfam;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 vLfam;v()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 bLfam;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 aLfam;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 dLfam;d()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 aLfam;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 aLfam;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 bLfam;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 wLfam;w()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 cLfam;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 aLfam;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 bLfam;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 aLfam;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 eLfam;e()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 fLfam;f()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 gLfam;g()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 aLfam;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 hLfam;h()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 xLfam;x()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 iLfam;i()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 aLfam;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 cLfam;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 aLfam;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 aLfam;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 bLfam;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 jLfam;j()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 kLfam;k()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 lLfam;l()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 mLfam;m()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 bLfam;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 cLfam;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 nLfam;n()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 oLfam;o()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 pLfam;p()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 qLfam;q()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 rLfam;r()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 sLfam;s()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 tLfam;t()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 uLfam;u()Lfah;
-
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 bLfam;b(Z)V
-