public class ResourceLoadProgressGui extends LoadingGui
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ResourceLoadProgressGui.MojangLogoTexture |
Modifier and Type | Field and Description |
---|---|
private IAsyncReloader |
asyncReloader |
private java.util.function.Consumer<java.util.Optional<java.lang.Throwable>> |
completedCallback |
private long |
fadeInStart |
private long |
fadeOutStart |
private Minecraft |
mc |
private static ResourceLocation |
MOJANG_LOGO_TEXTURE |
private float |
progress |
private boolean |
reloading |
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and 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_) |
Modifier and Type | Method and Description |
---|---|
boolean |
isPauseScreen() |
static void |
loadLogoTexture(Minecraft mc) |
void |
render(int p_render_1_,
int p_render_2_,
float p_render_3_) |
private void |
renderProgressBar(int p_228181_1_,
int p_228181_2_,
int p_228181_3_,
int p_228181_4_,
float p_228181_5_) |
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
private static final ResourceLocation MOJANG_LOGO_TEXTURE
private final Minecraft mc
private final IAsyncReloader asyncReloader
private final java.util.function.Consumer<java.util.Optional<java.lang.Throwable>> completedCallback
private final boolean reloading
private float progress
private long fadeOutStart
private long fadeInStart
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_)
public static void loadLogoTexture(Minecraft mc)
public void render(int p_render_1_, int p_render_2_, float p_render_3_)
private void renderProgressBar(int p_228181_1_, int p_228181_2_, int p_228181_3_, int p_228181_4_, float p_228181_5_)
public boolean isPauseScreen()
isPauseScreen
in class LoadingGui