Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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
    • Constructor Detail

      • ClientVisualization

        ClientVisualization()
    • 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()
      • renderMemoryInfo

        private void renderMemoryInfo()
      • renderMessage

        private void renderMessage​(java.lang.String message,
                                   float[] colour,
                                   int row,
                                   float alpha)
      • renderThreadFunc

        private void renderThreadFunc()
      • 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 interface EarlyProgressVisualization.Visualization