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 longapplyCompleteTimeprivate static intBRAND_ARGBprivate static intBRAND_RGBprivate MinecraftClientclientprivate Consumer<Optional<Throwable>>exceptionHandlerprivate static IdentifierLOGOprivate longprepareCompleteTimeprivate floatprogressprivate booleanreloadingprivate ResourceReloadMonitorreloadMonitorFields 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 voidinit(MinecraftClient client)booleanpausesGame()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)private voidrenderProgressBar(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:
pausesGamein classOverlay
-