Skip to content

Commit 4d3750d

Browse files
committed
Black n White Mojang Loading Screen
1 parent f355ae8 commit 4d3750d

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2014-2026 Wurst-Imperium and contributors.
3+
*
4+
* This source code is subject to the terms of the GNU General Public
5+
* License, version 3. If a copy of the GPL was not distributed with this
6+
* file, You can obtain one at: https://www.gnu.org/licenses/gpl-3.0.txt
7+
*/
8+
package net.wurstclient.mixin;
9+
10+
import org.spongepowered.asm.mixin.Final;
11+
import org.spongepowered.asm.mixin.Mixin;
12+
import org.spongepowered.asm.mixin.Mutable;
13+
import org.spongepowered.asm.mixin.Shadow;
14+
import org.spongepowered.asm.mixin.injection.At;
15+
import org.spongepowered.asm.mixin.injection.Inject;
16+
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
17+
18+
import net.minecraft.client.gui.screens.LoadingOverlay;
19+
import net.minecraft.util.ARGB;
20+
21+
@Mixin(LoadingOverlay.class)
22+
public abstract class LoadingOverlayMixin
23+
{
24+
@Shadow
25+
@Final
26+
@Mutable
27+
private static int LOGO_BACKGROUND_COLOR;
28+
29+
@Shadow
30+
@Final
31+
@Mutable
32+
private static int LOGO_BACKGROUND_COLOR_DARK;
33+
34+
@Inject(method = "<clinit>", at = @At("TAIL"))
35+
private static void onClassInit(CallbackInfo ci)
36+
{
37+
int black = ARGB.color(255, 0, 0, 0);
38+
LOGO_BACKGROUND_COLOR = black;
39+
LOGO_BACKGROUND_COLOR_DARK = black;
40+
}
41+
}

src/main/resources/wurst.mixins.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"KeyMappingMixin",
5858
"KeyboardHandlerMixin",
5959
"LanguageManagerMixin",
60+
"LoadingOverlayMixin",
6061
"LevelMixin",
6162
"LevelRendererMixin",
6263
"LivingEntityMixin",

0 commit comments

Comments
 (0)