com.mojang.blaze3d.platform

public final class Window

implements AutoCloseable

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public static String
a()
getPlatform()
method_60793()
getGlfwPlatform()
m_340634_()
public int
b()
getRefreshRate()
method_22092()
getRefreshRate()
m_85377_()
public boolean
c()
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(asq arg0, fad arg1)
setIcon(PackResources arg0, IconSet arg1)
method_4491(class_3262 arg0, class_8518 arg1)
setIcon(ResourcePack resourcePack, Icons icons)
m_280655_(C_50_ p_282155_, C_279509_ arg1)
public void
a(String arg0)
setErrorSection(String arg0)
method_4474(String arg0)
setPhase(String phase)
m_85403_(String arg0)
private void
v()
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
d()
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
w()
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
e()
getFramerateLimit()
method_16000()
getFramerateLimit()
m_85434_()
public void
f()
updateDisplay()
method_15998()
swapBuffers()
m_85435_()
public Optional<VideoMode>
g()
getPreferredFullscreenVideoMode()
method_4511()
getFullscreenVideoMode()
m_85436_()
public void
a(Optional<fal> arg0)
setPreferredFullscreenVideoMode(Optional<VideoMode> arg0)
method_4505(Optional<class_319> arg0)
setFullscreenVideoMode(Optional<VideoMode> fullscreenVideoMode)
m_85405_(Optional<C_3160_> arg0)
public void
h()
changeFullscreenVideoMode()
method_4475()
applyFullscreenVideoMode()
m_85437_()
private void
x()
setMode()
method_4479()
updateWindowRegion()
m_85453_()
public void
i()
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
j()
getWindow()
method_4490()
getHandle()
m_85439_()
public boolean
k()
isFullscreen()
method_4498()
isFullscreen()
m_85440_()
public int
l()
getWidth()
method_4489()
getFramebufferWidth()
m_85441_()
public int
m()
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
n()
getScreenWidth()
method_4480()
getWidth()
m_85443_()
public int
o()
getScreenHeight()
method_4507()
getHeight()
m_85444_()
public int
p()
getGuiScaledWidth()
method_4486()
getScaledWidth()
m_85445_()
public int
q()
getGuiScaledHeight()
method_4502()
getScaledHeight()
m_85446_()
public int
r()
getX()
method_4499()
getX()
m_85447_()
public int
s()
getY()
method_4477()
getY()
m_85448_()
public double
t()
getGuiScale()
method_4495()
getScaleFactor()
m_85449_()
public Monitor
u()
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)