Class ClientVisualization

java.lang.Object
net.minecraftforge.fml.loading.progress.ClientVisualization
All Implemented Interfaces:
EarlyProgressVisualization.Visualization

class ClientVisualization extends Object implements EarlyProgressVisualization.Visualization
  • Field Details

    • screenWidth

      private final int screenWidth
      See Also:
    • screenHeight

      private final int screenHeight
      See Also:
    • window

      private long window
    • renderThread

      private Thread 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

      private void initWindow(@Nullable 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(BiConsumer<Integer,String> handler)
    • renderMessages

      private void renderMessages()
    • updateFBSize

      public void updateFBSize(IntConsumer width, IntConsumer height)
      Specified by:
      updateFBSize in interface EarlyProgressVisualization.Visualization
    • renderMemoryInfo

      private void renderMemoryInfo()
    • renderMessage

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

      private void renderThreadFunc()
    • start

      public Runnable start(@Nullable String mcVersion)
      Specified by:
      start in interface EarlyProgressVisualization.Visualization
    • handOffWindow

      public long handOffWindow(IntSupplier width, IntSupplier height, Supplier<String> title, LongSupplier monitorSupplier)
      Specified by:
      handOffWindow in interface EarlyProgressVisualization.Visualization