com.mojang.blaze3d.platform

public final class Window

implements AutoCloseable

dzu
com.mojang.blaze3d.platform.Window
net.minecraft.class_1041
net.minecraft.client.util.Window
net.minecraft.src.C_3161_

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_5178
LOGGER
f_85345_
private final org.lwjgl.glfw.GLFWErrorCallback
b
defaultErrorCallback
field_5190
errorCallback
f_85346_
private final WindowEventHandler
c
eventHandler
field_5176
eventHandler
f_85347_
private final ScreenManager
d
screenManager
field_5195
monitorTracker
f_85348_
private final long
e
window
field_5187
handle
f_85349_
private int
f
windowedX
field_5175
windowedX
f_85350_
private int
g
windowedY
field_5185
windowedY
f_85351_
private int
h
windowedWidth
field_5174
windowedWidth
f_85352_
private int
i
windowedHeight
field_5184
windowedHeight
f_85353_
private Optional<VideoMode>
j
preferredFullscreenVideoMode
field_5193
videoMode
f_85354_
private boolean
k
fullscreen
field_5191
fullscreen
f_85355_
private boolean
l
actuallyFullscreen
field_5177
currentFullscreen
f_85356_
private int
m
x
field_5183
x
f_85357_
private int
n
y
field_5198
y
f_85358_
private int
o
width
field_5182
width
f_85359_
private int
p
height
field_5197
height
f_85360_
private int
q
framebufferWidth
field_5181
framebufferWidth
f_85361_
private int
r
framebufferHeight
field_5196
framebufferHeight
f_85362_
private int
s
guiScaledWidth
field_5180
scaledWidth
f_85363_
private int
t
guiScaledHeight
field_5194
scaledHeight
f_85364_
private double
u
guiScale
field_5179
scaleFactor
f_85365_
private String
v
errorSection
field_5192
phase
f_85366_
private boolean
w
dirty
field_5186
videoModeDirty
f_85367_
private int
x
framerateLimit
field_16238
framerateLimit
f_85368_
private boolean
y
vsync
field_16517
vsync
f_85369_

Constructor summary

ModifierConstructor
public (WindowEventHandler eventHandler, ScreenManager monitorTracker, DisplayData settings, String videoMode, String title)

Method summary

Modifier and TypeMethod
public int
a()
getRefreshRate()
method_22092()
getRefreshRate()
m_85377_()
public boolean
b()
shouldClose()
method_22093()
shouldClose()
m_85411_()
public static void
a(BiConsumer<Integer, String> arg0)
checkGlfwError(BiConsumer<Integer, String> arg0)
method_4492(BiConsumer<Integer, String> arg0)
acceptError(BiConsumer<Integer, String> consumer)
m_85407_(BiConsumer<Integer, String> p_85408_)
public void
a(InputStream arg0, InputStream arg1)
setIcon(InputStream arg0, InputStream arg1)
method_4491(InputStream arg0, InputStream arg1)
setIcon(InputStream icon16, InputStream icon32)
m_85395_(InputStream p_85397_, InputStream arg1)
private ByteBuffer
a(InputStream arg0, IntBuffer arg1, IntBuffer arg2, IntBuffer arg3)
readIconPixels(InputStream arg0, IntBuffer arg1, IntBuffer arg2, IntBuffer arg3)
method_4510(InputStream arg0, IntBuffer arg1, IntBuffer arg2, IntBuffer arg3)
readImage(InputStream in, IntBuffer x, IntBuffer y, IntBuffer channels)
m_85398_(InputStream p_85400_, IntBuffer p_85401_, IntBuffer p_85402_, IntBuffer arg3)
public void
a(String arg0)
setErrorSection(String arg0)
method_4474(String arg0)
setPhase(String phase)
m_85403_(String arg0)
private void
u()
setBootErrorCallback()
method_4481()
throwOnGlError()
m_85451_()
private static void
b(int arg0, long arg1)
bootCrash(int arg0, long arg1)
method_4501(int arg0, long arg1)
throwGlError(int error, long description)
m_85412_(int p_85413_, long p_85414_)
public void
a(int arg0, long arg1)
defaultErrorCallback(int arg0, long arg1)
method_4482(int arg0, long arg1)
logGlError(int error, long description)
m_85382_(int p_85384_, long arg1)
public void
c()
setDefaultErrorCallback()
method_4513()
logOnGlError()
m_85426_()
public void
a(boolean arg0)
updateVsync(boolean arg0)
method_4497(boolean arg0)
setVsync(boolean vsync)
m_85409_(boolean arg0)
public void
close()
close()
close()
private void
a(long arg0, int arg1, int arg2)
onMove(long arg0, int arg1, int arg2)
method_4478(long arg0, int arg1, int arg2)
onWindowPosChanged(long window, int x, int y)
m_85388_(long p_85390_, int arg1, int arg2)
private void
b(long arg0, int arg1, int arg2)
onFramebufferResize(long arg0, int arg1, int arg2)
method_4504(long arg0, int arg1, int arg2)
onFramebufferSizeChanged(long window, int width, int height)
m_85415_(long p_85417_, int arg1, int arg2)
private void
v()
refreshFramebufferSize()
method_4483()
updateFramebufferSize()
m_85452_()
private void
c(long arg0, int arg1, int arg2)
onResize(long arg0, int arg1, int arg2)
method_4488(long arg0, int arg1, int arg2)
onWindowSizeChanged(long window, int width, int height)
m_85427_(long p_85429_, int arg1, int arg2)
private void
a(long arg0, boolean arg1)
onFocus(long arg0, boolean arg1)
method_4494(long arg0, boolean arg1)
onWindowFocusChanged(long window, boolean focused)
m_85392_(long p_85394_, boolean arg1)
private void
b(long arg0, boolean arg1)
onEnter(long arg0, boolean arg1)
method_30132(long arg0, boolean arg1)
onCursorEnterChanged(long window, boolean entered)
m_85419_(long p_85421_, boolean arg1)
public void
a(int arg0)
setFramerateLimit(int arg0)
method_15999(int arg0)
setFramerateLimit(int framerateLimit)
m_85380_(int arg0)
public int
d()
getFramerateLimit()
method_16000()
getFramerateLimit()
m_85434_()
public void
e()
updateDisplay()
method_15998()
swapBuffers()
m_85435_()
public Optional<VideoMode>
f()
getPreferredFullscreenVideoMode()
method_4511()
getVideoMode()
m_85436_()
public void
a(Optional<dzt> arg0)
setPreferredFullscreenVideoMode(Optional<VideoMode> arg0)
method_4505(Optional<class_319> arg0)
setVideoMode(Optional<VideoMode> videoMode)
m_85405_(Optional<C_3160_> arg0)
public void
g()
changeFullscreenVideoMode()
method_4475()
applyVideoMode()
m_85437_()
private void
w()
setMode()
method_4479()
updateWindowRegion()
m_85453_()
public void
h()
toggleFullScreen()
method_4500()
toggleFullscreen()
m_85438_()
public void
a(int arg0, int arg1)
setWindowed(int arg0, int arg1)
method_36813(int arg0, int arg1)
setWindowedSize(int width, int height)
m_166447_(int p_166449_, int arg1)
private void
c(boolean arg0)
updateFullscreen(boolean arg0)
method_4485(boolean arg0)
updateFullscreen(boolean vsync)
m_85431_(boolean arg0)
public int
a(int arg0, boolean arg1)
calculateScale(int arg0, boolean arg1)
method_4476(int arg0, boolean arg1)
calculateScaleFactor(int guiScale, boolean forceUnicodeFont)
m_85385_(int p_85387_, boolean arg1)
public void
a(double arg0)
setGuiScale(double arg0)
method_15997(double arg0)
setScaleFactor(double scaleFactor)
m_85378_(double arg0)
public void
b(String arg0)
setTitle(String arg0)
method_24286(String arg0)
setTitle(String title)
m_85422_(String arg0)
public long
i()
getWindow()
method_4490()
getHandle()
m_85439_()
public boolean
j()
isFullscreen()
method_4498()
isFullscreen()
m_85440_()
public int
k()
getWidth()
method_4489()
getFramebufferWidth()
m_85441_()
public int
l()
getHeight()
method_4506()
getFramebufferHeight()
m_85442_()
public void
b(int arg0)
setWidth(int arg0)
method_35642(int arg0)
setFramebufferWidth(int framebufferWidth)
m_166450_(int arg0)
public void
c(int arg0)
setHeight(int arg0)
method_35643(int arg0)
setFramebufferHeight(int framebufferHeight)
m_166452_(int arg0)
public int
m()
getScreenWidth()
method_4480()
getWidth()
m_85443_()
public int
n()
getScreenHeight()
method_4507()
getHeight()
m_85444_()
public int
o()
getGuiScaledWidth()
method_4486()
getScaledWidth()
m_85445_()
public int
p()
getGuiScaledHeight()
method_4502()
getScaledHeight()
m_85446_()
public int
q()
getX()
method_4499()
getX()
m_85447_()
public int
r()
getY()
method_4477()
getY()
m_85448_()
public double
s()
getGuiScale()
method_4495()
getScaleFactor()
m_85449_()
public Monitor
t()
findBestMonitor()
method_20831()
getMonitor()
m_85450_()
public void
b(boolean arg0)
updateRawMouseInput(boolean arg0)
method_21668(boolean arg0)
setRawMouseMotion(boolean rawMouseMotion)
m_85424_(boolean arg0)