net.minecraft.client.util

public final class Window

implements AutoCloseable

com.mojang.blaze3d.platform.Window
net.minecraft.class_1041
net.minecraft.client.util.Window

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_5178
LOGGER
public static final int
BASE_WIDTH
field_52250
FRAMEBUFFER_WIDTH_SCALE
public static final int
BASE_HEIGHT
field_52251
FRAMEBUFFER_HEIGHT_SCALE
private final org.lwjgl.glfw.GLFWErrorCallback
defaultErrorCallback
field_5190
errorCallback
private final WindowEventHandler
eventHandler
field_5176
eventHandler
private final MonitorTracker
screenManager
field_5195
monitorTracker
private final long
handle
field_5187
handle
private int
windowedX
field_5175
windowedX
private int
windowedY
field_5185
windowedY
private int
windowedWidth
field_5174
windowedWidth
private int
windowedHeight
field_5184
windowedHeight
private Optional<VideoMode>
preferredFullscreenVideoMode
field_5193
fullscreenVideoMode
private boolean
fullscreen
field_5191
fullscreen
private boolean
actuallyFullscreen
field_5177
currentFullscreen
private int
x
field_5183
x
private int
y
field_5198
y
private int
width
field_5182
width
private int
height
field_5197
height
private int
framebufferWidth
field_5181
framebufferWidth
private int
framebufferHeight
field_5196
framebufferHeight
private int
guiScaledWidth
field_5180
scaledWidth
private int
guiScaledHeight
field_5194
scaledHeight
private int
guiScale
field_5179
scaleFactor
private String
errorSection
field_5192
phase
private boolean
dirty
field_5186
fullscreenVideoModeDirty
private boolean
vsync
field_16517
vsync
private boolean
iconified
field_52735
minimized
private boolean
minimized
field_55579
zeroWidthOrHeight
private boolean
allowCursorChanges
field_62447
allowCursorChanges
private Cursor
currentCursor
field_62448
cursor

Constructor summary

ModifierConstructor
public (WindowEventHandler eventHandler, MonitorTracker screenManager, WindowSettings settings, String fullscreenVideoMode, String title)

Method summary

Modifier and TypeMethod
public static String
getPlatform()
method_60793()
getGlfwPlatform()
public int
getRefreshRate()
method_22092()
getRefreshRate()
public boolean
shouldClose()
method_22093()
shouldClose()
public static void
checkGlfwError(BiConsumer<Integer, String> errorConsumer)
method_4492(BiConsumer<Integer, String> arg0)
acceptError(BiConsumer<Integer, String> consumer)
public void
setIcon(PackResources resources, IconSet iconSet)
method_4491(class_3262 arg0, class_8518 arg1)
setIcon(ResourcePack resourcePack, Icons icons)
public void
setErrorSection(String string)
method_4474(String arg0)
setPhase(String phase)
private void
setBootErrorCallback()
method_4481()
throwOnGlError()
private static void
bootCrash(int error, long description)
method_4501(int arg0, long arg1)
throwGlError(int error, long description)
public void
defaultErrorCallback(int errorCode, long description)
method_4482(int arg0, long arg1)
logGlError(int error, long description)
public void
setDefaultErrorCallback()
method_4513()
logOnGlError()
public void
updateVsync(boolean enableVsync)
method_4497(boolean arg0)
setVsync(boolean vsync)
public void
close()
private void
onMove(long handle, int x, int y)
method_4478(long arg0, int arg1, int arg2)
onWindowPosChanged(long window, int x, int y)
private void
onFramebufferResize(long handle, int newWidth, int newHeight)
method_4504(long arg0, int arg1, int arg2)
onFramebufferSizeChanged(long window, int width, int height)
private void
refreshFramebufferSize()
method_4483()
updateFramebufferSize()
private void
onResize(long handle, int newWidth, int newHeight)
method_4488(long arg0, int arg1, int arg2)
onWindowSizeChanged(long window, int width, int height)
private void
onFocus(long handle, boolean focused)
method_4494(long arg0, boolean arg1)
onWindowFocusChanged(long window, boolean focused)
private void
onEnter(long handle, boolean entered)
method_30132(long arg0, boolean arg1)
onCursorEnterChanged(long window, boolean entered)
private void
onIconify(long handle, boolean iconified)
method_61945(long arg0, boolean arg1)
onMinimizeChanged(long window, boolean minimized)
public void
updateDisplay(TracyFrameCapture tracyFrameCapture)
method_15998(class_10219 arg0)
swapBuffers(TracyFrameCapturer capturer)
public Optional<VideoMode>
getPreferredFullscreenVideoMode()
method_4511()
getFullscreenVideoMode()
public void
setPreferredFullscreenVideoMode(Optional<VideoMode> preferredFullscreenVideoMode)
method_4505(Optional<class_319> arg0)
setFullscreenVideoMode(Optional<VideoMode> fullscreenVideoMode)
public void
changeFullscreenVideoMode()
method_4475()
applyFullscreenVideoMode()
private void
setMode()
method_4479()
updateWindowRegion()
public void
toggleFullScreen()
method_4500()
toggleFullscreen()
public void
setWindowed(int width, int height)
method_36813(int arg0, int arg1)
setWindowedSize(int width, int height)
private void
updateFullscreen(boolean enableVsync, TracyFrameCapture tracyFrameCapture)
method_4485(boolean arg0, class_10219 arg1)
updateFullscreen(boolean vsync, TracyFrameCapturer capturer)
public int
calculateScale(int maxScale, boolean enforceUnicode)
method_4476(int arg0, boolean arg1)
calculateScaleFactor(int guiScale, boolean forceUnicodeFont)
public void
setGuiScale(int guiScale)
method_15997(int arg0)
setScaleFactor(int scaleFactor)
public void
setTitle(String title)
method_24286(String arg0)
setTitle(String title)
public long
handle()
method_4490()
getHandle()
public boolean
isFullscreen()
method_4498()
isFullscreen()
public boolean
isIconified()
method_61946()
isMinimized()
public int
getWidth()
method_4489()
getFramebufferWidth()
public int
getHeight()
method_4506()
getFramebufferHeight()
public void
setWidth(int width)
method_35642(int arg0)
setFramebufferWidth(int framebufferWidth)
public void
setHeight(int height)
method_35643(int arg0)
setFramebufferHeight(int framebufferHeight)
public int
getScreenWidth()
method_4480()
getWidth()
public int
getScreenHeight()
method_4507()
getHeight()
public int
getGuiScaledWidth()
method_4486()
getScaledWidth()
public int
getGuiScaledHeight()
method_4502()
getScaledHeight()
public int
getX()
method_4499()
getX()
public int
getY()
method_4477()
getY()
public int
getGuiScale()
method_4495()
getScaleFactor()
public Monitor
findBestMonitor()
method_20831()
getMonitor()
public void
updateRawMouseInput(boolean value)
method_21668(boolean arg0)
setRawMouseMotion(boolean rawMouseMotion)
public void
setWindowCloseCallback(Runnable task)
method_61943(Runnable arg0)
setCloseCallback(Runnable callback)
public boolean
isMinimized()
method_65966()
hasZeroWidthOrHeight()
public void
setAllowCursorChanges(boolean value)
method_74030(boolean arg0)
setAllowCursorChanges(boolean allowCursorChanges)
public void
selectCursor(CursorType cursor)
method_74029(class_11875 arg0)
setCursor(Cursor cursor)
public float
getAppropriateLineWidth()
method_75291()
getMinimumLineWidth()
private static void
lambda$setWindowCloseCallback$0(Runnable arg0, long arg1)
method_61944(Runnable arg0, long arg1)
method_61944(Runnable arg0, long arg1)