Package net.minecraft.client.gui.screen
Class SplashScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.screen.Overlay
net.minecraft.client.gui.screen.SplashScreen
- All Implemented Interfaces:
Drawable
@Environment(CLIENT) public class SplashScreen extends Overlay
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SplashScreen.LogoTexture
-
Field Summary
Fields Modifier and Type Field 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
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description SplashScreen(MinecraftClient client, ResourceReloadMonitor monitor, Consumer<Optional<Throwable>> exceptionHandler, boolean reloading)
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
-
Field Details
-
LOGO
-
BRAND_ARGB
private static final int BRAND_ARGB -
BRAND_RGB
private static final int BRAND_RGB -
client
-
reloadMonitor
-
exceptionHandler
-
reloading
private final boolean reloading -
progress
private float progress -
applyCompleteTime
private long applyCompleteTime -
prepareCompleteTime
private long prepareCompleteTime
-
-
Constructor Details
-
SplashScreen
public SplashScreen(MinecraftClient client, ResourceReloadMonitor monitor, Consumer<Optional<Throwable>> exceptionHandler, boolean reloading)
-
-
Method Details
-
init
-
render
-
renderProgressBar
private void renderProgressBar(MatrixStack matrices, int x1, int y1, int x2, int y2, float opacity) -
pausesGame
public boolean pausesGame()- Overrides:
pausesGame
in classOverlay
-