Package net.minecraft.client.gui
Class ResourceLoadProgressGui
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.LoadingGui
-
- net.minecraft.client.gui.ResourceLoadProgressGui
-
- All Implemented Interfaces:
IRenderable
public class ResourceLoadProgressGui extends LoadingGui
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ResourceLoadProgressGui.MojangLogoTexture
-
Field Summary
Fields Modifier and Type Field Description private static int
BRAND_BACKGROUND
private static int
BRAND_BACKGROUND_NO_ALPHA
private float
currentProgress
private boolean
fadeIn
private long
fadeInStart
private long
fadeOutStart
private Minecraft
minecraft
private static ResourceLocation
MOJANG_STUDIOS_LOGO_LOCATION
private java.util.function.Consumer<java.util.Optional<java.lang.Throwable>>
onFinish
private IAsyncReloader
reload
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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_)
boolean
isPauseScreen()
static void
registerTextures(Minecraft p_212970_0_)
void
render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
-
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
-
-
-
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
-
reload
private final IAsyncReloader reload
-
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_)
-
isPauseScreen
public boolean isPauseScreen()
- Overrides:
isPauseScreen
in classLoadingGui
-
-