Class ClientVisualization
- java.lang.Object
-
- net.minecraftforge.fml.loading.progress.ClientVisualization
-
- All Implemented Interfaces:
EarlyProgressVisualization.Visualization
class ClientVisualization extends java.lang.Object implements EarlyProgressVisualization.Visualization
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
fbSize
private org.lwjgl.glfw.GLFWFramebufferSizeCallback
framebufferSizeCallback
private static float[]
memorycolour
private java.lang.Thread
renderThread
private boolean
running
private int
screenHeight
private int
screenWidth
private long
window
-
Constructor Summary
Constructors Constructor Description ClientVisualization()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static float
clamp(float num, float min, float max)
private static int
clamp(int num, int min, int max)
private void
fbResize(long window, int width, int height)
private void
handleLastGLFWError(java.util.function.BiConsumer<java.lang.Integer,java.lang.String> handler)
long
handOffWindow(java.util.function.IntSupplier width, java.util.function.IntSupplier height, java.util.function.Supplier<java.lang.String> title, java.util.function.LongSupplier monitorSupplier)
private static int
hsvToRGB(float hue, float saturation, float value)
private void
initWindow(java.lang.String mcVersion)
private void
renderBackground()
private void
renderMemoryInfo()
private void
renderMessage(java.lang.String message, float[] colour, int row, float alpha)
private void
renderMessages()
private void
renderProgress()
private void
renderThreadFunc()
private void
setWindowIcon(org.lwjgl.system.MemoryStack stack)
java.lang.Runnable
start(java.lang.String mcVersion)
void
updateFBSize(java.util.function.IntConsumer width, java.util.function.IntConsumer height)
-
-
-
Field Detail
-
screenWidth
private final int screenWidth
- See Also:
- Constant Field Values
-
screenHeight
private final int screenHeight
- See Also:
- Constant Field Values
-
window
private long window
-
renderThread
private java.lang.Thread renderThread
-
running
private boolean running
-
framebufferSizeCallback
private org.lwjgl.glfw.GLFWFramebufferSizeCallback framebufferSizeCallback
-
fbSize
private int[] fbSize
-
memorycolour
private static final float[] memorycolour
-
-
Method Detail
-
initWindow
private void initWindow(@Nullable java.lang.String mcVersion)
-
setWindowIcon
private void setWindowIcon(org.lwjgl.system.MemoryStack stack)
-
renderProgress
private void renderProgress()
-
clamp
private static float clamp(float num, float min, float max)
-
clamp
private static int clamp(int num, int min, int max)
-
hsvToRGB
private static int hsvToRGB(float hue, float saturation, float value)
-
renderBackground
private void renderBackground()
-
fbResize
private void fbResize(long window, int width, int height)
-
handleLastGLFWError
private void handleLastGLFWError(java.util.function.BiConsumer<java.lang.Integer,java.lang.String> handler)
-
renderMessages
private void renderMessages()
-
updateFBSize
public void updateFBSize(java.util.function.IntConsumer width, java.util.function.IntConsumer height)
- Specified by:
updateFBSize
in interfaceEarlyProgressVisualization.Visualization
-
renderMemoryInfo
private void renderMemoryInfo()
-
renderMessage
private void renderMessage(java.lang.String message, float[] colour, int row, float alpha)
-
renderThreadFunc
private void renderThreadFunc()
-
start
public java.lang.Runnable start(@Nullable java.lang.String mcVersion)
- Specified by:
start
in interfaceEarlyProgressVisualization.Visualization
-
handOffWindow
public long handOffWindow(java.util.function.IntSupplier width, java.util.function.IntSupplier height, java.util.function.Supplier<java.lang.String> title, java.util.function.LongSupplier monitorSupplier)
- Specified by:
handOffWindow
in interfaceEarlyProgressVisualization.Visualization
-
-