Class ClientVisualization
java.lang.Object
net.minecraftforge.fml.loading.progress.ClientVisualization
- All Implemented Interfaces:
EarlyProgressVisualization.Visualization
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int[]private org.lwjgl.glfw.GLFWFramebufferSizeCallbackprivate static final float[]private Threadprivate booleanprivate final intprivate final intprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static floatclamp(float num, float min, float max) private static intclamp(int num, int min, int max) private voidfbResize(long window, int width, int height) private voidhandleLastGLFWError(BiConsumer<Integer, String> handler) longhandOffWindow(IntSupplier width, IntSupplier height, Supplier<String> title, LongSupplier monitorSupplier) private static inthsvToRGB(float hue, float saturation, float value) private voidinitWindow(String mcVersion) private voidprivate voidprivate voidrenderMessage(String message, float[] colour, int row, float alpha) private voidprivate voidprivate voidprivate voidsetWindowIcon(org.lwjgl.system.MemoryStack stack) voidupdateFBSize(IntConsumer width, IntConsumer height)
-
Field Details
-
screenWidth
private final int screenWidth- See Also:
-
screenHeight
private final int screenHeight- See Also:
-
window
private long window -
renderThread
-
running
private boolean running -
framebufferSizeCallback
private org.lwjgl.glfw.GLFWFramebufferSizeCallback framebufferSizeCallback -
fbSize
private int[] fbSize -
memorycolour
private static final float[] memorycolour
-
-
Constructor Details
-
ClientVisualization
ClientVisualization()
-
-
Method Details
-
initWindow
-
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
-
renderMessages
private void renderMessages() -
updateFBSize
- Specified by:
updateFBSizein interfaceEarlyProgressVisualization.Visualization
-
renderMemoryInfo
private void renderMemoryInfo() -
renderMessage
-
renderThreadFunc
private void renderThreadFunc() -
start
- Specified by:
startin interfaceEarlyProgressVisualization.Visualization
-
handOffWindow
public long handOffWindow(IntSupplier width, IntSupplier height, Supplier<String> title, LongSupplier monitorSupplier) - Specified by:
handOffWindowin interfaceEarlyProgressVisualization.Visualization
-