Class LoadingOverlay

All Implemented Interfaces:
Widget

public class LoadingOverlay extends Overlay
  • Field Details

    • MOJANG_STUDIOS_LOGO_LOCATION

      static final ResourceLocation MOJANG_STUDIOS_LOGO_LOCATION
    • LOGO_BACKGROUND_COLOR

      private static final int LOGO_BACKGROUND_COLOR
    • LOGO_BACKGROUND_COLOR_DARK

      private static final int LOGO_BACKGROUND_COLOR_DARK
    • BRAND_BACKGROUND

      private static final IntSupplier BRAND_BACKGROUND
    • LOGO_SCALE

      private static final int LOGO_SCALE
      See Also:
      Constant Field Values
    • LOGO_QUARTER_FLOAT

      private static final float LOGO_QUARTER_FLOAT
      See Also:
      Constant Field Values
    • LOGO_QUARTER

      private static final int LOGO_QUARTER
      See Also:
      Constant Field Values
    • LOGO_HALF

      private static final int LOGO_HALF
      See Also:
      Constant Field Values
    • LOGO_OVERLAP

      private static final float LOGO_OVERLAP
      See Also:
      Constant Field Values
    • SMOOTHING

      private static final float SMOOTHING
      See Also:
      Constant Field Values
    • FADE_OUT_TIME

      public static final long FADE_OUT_TIME
      See Also:
      Constant Field Values
    • FADE_IN_TIME

      public static final long FADE_IN_TIME
      See Also:
      Constant Field Values
    • minecraft

      private final Minecraft minecraft
    • reload

      private final ReloadInstance reload
    • onFinish

      private final Consumer<Optional<Throwable>> onFinish
    • fadeIn

      private final boolean fadeIn
    • currentProgress

      private float currentProgress
    • fadeOutStart

      private long fadeOutStart
    • fadeInStart

      private long fadeInStart
  • Constructor Details

  • Method Details

    • registerTextures

      public static void registerTextures(Minecraft p_96190_)
    • replaceAlpha

      private static int replaceAlpha(int p_169325_, int p_169326_)
    • render

      public void render(PoseStack p_96178_, int p_96179_, int p_96180_, float p_96181_)
    • drawProgressBar

      private void drawProgressBar(PoseStack p_96183_, int p_96184_, int p_96185_, int p_96186_, int p_96187_, float p_96188_)
    • isPauseScreen

      public boolean isPauseScreen()
      Overrides:
      isPauseScreen in class Overlay