-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started version detector thingy, will be in 1.19.3 version
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/main/java/ml/pluto7073/plutoscoffee/VersionWarningScreen.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package ml.pluto7073.plutoscoffee; | ||
|
||
import net.fabricmc.api.EnvType; | ||
import net.fabricmc.api.Environment; | ||
import net.minecraft.client.gui.screen.WarningScreen; | ||
import net.minecraft.text.Text; | ||
|
||
@Environment(EnvType.CLIENT) | ||
public class VersionWarningScreen extends WarningScreen { | ||
|
||
private static final Text HEADER; | ||
private static final Text MESSAGE; | ||
private static final Text NARRATED; | ||
|
||
public VersionWarningScreen() { | ||
super(HEADER, MESSAGE, NARRATED); | ||
} | ||
|
||
@Override | ||
protected void initButtons(int yOffset) { | ||
|
||
} | ||
|
||
static { | ||
HEADER = Text.translatable("plutoscoffee.version.header"); | ||
MESSAGE = Text.translatable("plutoscoffee.version.message"); | ||
NARRATED = HEADER.copy().append("\n").append(MESSAGE); | ||
} | ||
|
||
} |