Class ResourceLoadProgressGui

    • Field Detail

      • MOJANG_STUDIOS_LOGO_LOCATION

        private static final ResourceLocation MOJANG_STUDIOS_LOGO_LOCATION
      • BRAND_BACKGROUND

        private static final int BRAND_BACKGROUND
      • BRAND_BACKGROUND_NO_ALPHA

        private static final int BRAND_BACKGROUND_NO_ALPHA
      • minecraft

        private final Minecraft minecraft
      • onFinish

        private final java.util.function.Consumer<java.util.Optional<java.lang.Throwable>> onFinish
      • fadeIn

        private final boolean fadeIn
      • currentProgress

        private float currentProgress
      • fadeOutStart

        private long fadeOutStart
      • fadeInStart

        private long fadeInStart
    • Constructor Detail

      • ResourceLoadProgressGui

        public ResourceLoadProgressGui​(Minecraft p_i225928_1_,
                                       IAsyncReloader p_i225928_2_,
                                       java.util.function.Consumer<java.util.Optional<java.lang.Throwable>> p_i225928_3_,
                                       boolean p_i225928_4_)
    • Method Detail

      • registerTextures

        public static void registerTextures​(Minecraft p_212970_0_)
      • render

        public void render​(MatrixStack p_230430_1_,
                           int p_230430_2_,
                           int p_230430_3_,
                           float p_230430_4_)
      • drawProgressBar

        private void drawProgressBar​(MatrixStack p_238629_1_,
                                     int p_238629_2_,
                                     int p_238629_3_,
                                     int p_238629_4_,
                                     int p_238629_5_,
                                     float p_238629_6_)