Modifier and Type | Class and Description |
---|---|
(package private) static class |
SplashScreen.LogoTexture |
Modifier and Type | Field and Description |
---|---|
private long |
applyCompleteTime |
private static int |
BRAND_ARGB |
private static int |
BRAND_RGB |
private MinecraftClient |
client |
private Consumer<Optional<Throwable>> |
exceptionHandler |
private static Identifier |
LOGO |
private long |
prepareCompleteTime |
private float |
progress |
private boolean |
reloading |
private ResourceReloadMonitor |
reloadMonitor |
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
SplashScreen(MinecraftClient client,
ResourceReloadMonitor monitor,
Consumer<Optional<Throwable>> exceptionHandler,
boolean reloading) |
Modifier and Type | Method and Description |
---|---|
static void |
init(MinecraftClient client) |
boolean |
pausesGame() |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
private void |
renderProgressBar(MatrixStack matrices,
int x1,
int y1,
int x2,
int y2,
float opacity) |
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
private static final Identifier LOGO
private static final int BRAND_ARGB
private static final int BRAND_RGB
private final MinecraftClient client
private final ResourceReloadMonitor reloadMonitor
private final boolean reloading
private float progress
private long applyCompleteTime
private long prepareCompleteTime
public SplashScreen(MinecraftClient client, ResourceReloadMonitor monitor, Consumer<Optional<Throwable>> exceptionHandler, boolean reloading)
public static void init(MinecraftClient client)
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
private void renderProgressBar(MatrixStack matrices, int x1, int y1, int x2, int y2, float opacity)
public boolean pausesGame()
pausesGame
in class Overlay