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 classSplashScreen.LogoTexture -
Field Summary
Fields Modifier and Type Field Description private static intBRAND_ARGBprivate static intBRAND_RGBprivate MinecraftClientclientprivate Consumer<Optional<Throwable>>exceptionHandlerprivate static IdentifierLOGOprivate longprepareCompleteTimeprivate floatprogressprivate ResourceReloadreloadprivate longreloadCompleteTimeprivate booleanreloadingFields 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, ResourceReload monitor, Consumer<Optional<Throwable>> exceptionHandler, boolean reloading) -
Method Summary
Modifier and Type Method Description static voidinit(MinecraftClient client)booleanpausesGame()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)private voidrenderProgressBar(MatrixStack matrices, int int2, int int3, int int4, int int5, float opacity)Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredText, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
-
Field Details
-
LOGO
-
BRAND_ARGB
private static final int BRAND_ARGB -
BRAND_RGB
private static final int BRAND_RGB -
client
-
reload
-
exceptionHandler
-
reloading
private final boolean reloading -
progress
private float progress -
reloadCompleteTime
private long reloadCompleteTime -
prepareCompleteTime
private long prepareCompleteTime
-
-
Constructor Details
-
SplashScreen
public SplashScreen(MinecraftClient client, ResourceReload monitor, Consumer<Optional<Throwable>> exceptionHandler, boolean reloading)
-
-
Method Details
-
init
-
render
-
renderProgressBar
private void renderProgressBar(MatrixStack matrices, int int2, int int3, int int4, int int5, float opacity) -
pausesGame
public boolean pausesGame()- Overrides:
pausesGamein classOverlay
-