Files
Explosion-Overhaul/src/main/java/com/vinlanx/explosionoverhaul/client/IntroSplashScreen.java

33 lines
1.3 KiB
Java
Raw Normal View History

2026-05-04 12:09:37 +02:00
package com.vinlanx.explosionoverhaul.client;
import net.minecraft.client.gui.GuiGraphics;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.network.chat.Component;
2026-05-07 00:06:32 +02:00
public class IntroSplashScreen extends Screen {
2026-05-04 12:09:37 +02:00
public IntroSplashScreen() {
super(Component.literal("Explosion Overhaul"));
2026-05-04 12:09:37 +02:00
}
2026-05-07 00:06:32 +02:00
@Override
public void render(GuiGraphics graphics, int mouseX, int mouseY, float partialTick) {
this.renderBackground(graphics, mouseX, mouseY, partialTick);
graphics.drawCenteredString(this.font, Component.literal("Explosion Overhaul"), this.width / 2, this.height / 2 - 32, 0xFFFFFF);
graphics.drawCenteredString(this.font, Component.literal("NeoForge 1.21.1 private test port"), this.width / 2, this.height / 2 - 10, 0xD0D0D0);
graphics.drawCenteredString(this.font, Component.literal("Click or press any key to continue"), this.width / 2, this.height / 2 + 16, 0xA0A0A0);
2026-05-07 00:06:32 +02:00
super.render(graphics, mouseX, mouseY, partialTick);
2026-05-04 12:09:37 +02:00
}
@Override
public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
this.onClose();
return true;
}
@Override
public boolean mouseClicked(double mouseX, double mouseY, int button) {
this.onClose();
return true;
}
2026-05-04 12:09:37 +02:00
}