Skip to content

Commit e1a7b30

Browse files
committed
Merge branch 'master' of https://github.com/Avanatiker/NeoLambda
2 parents 2ee50ad + 2462d8c commit e1a7b30

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package com.lambda.mixin.render;
2+
3+
import net.minecraft.client.gui.screen.SplashOverlay;
4+
import net.minecraft.util.Identifier;
5+
import net.minecraft.util.math.ColorHelper;
6+
import org.spongepowered.asm.mixin.Final;
7+
import org.spongepowered.asm.mixin.Mixin;
8+
import org.spongepowered.asm.mixin.Mutable;
9+
import org.spongepowered.asm.mixin.Shadow;
10+
import org.spongepowered.asm.mixin.injection.*;
11+
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
12+
13+
import java.util.function.IntSupplier;
14+
15+
@Mixin(SplashOverlay.class)
16+
public class SplashOverlayMixin {
17+
@Mutable
18+
@Shadow @Final
19+
static Identifier LOGO;
20+
21+
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Ljava/util/function/IntSupplier;getAsInt()I"))
22+
private int redirectBrandArgb(IntSupplier originalSupplier) {
23+
return ColorHelper.Argb.getArgb(255, 35, 35, 35);
24+
}
25+
26+
@Inject(method = "<init>", at = @At("RETURN"))
27+
private void onInit(CallbackInfo ci) {
28+
LOGO = Identifier.of("lambda", "textures/lambda_banner.png");
29+
}
30+
}
35.9 KB
Loading

common/src/main/resources/lambda.mixins.common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"render.RenderSystemMixin",
3939
"render.RenderTickCounterMixin",
4040
"render.ScreenHandlerMixin",
41+
"render.SplashOverlayMixin",
4142
"render.VertexBufferMixin",
4243
"render.WorldRendererMixin",
4344
"world.BlockCollisionSpliteratorMixin",

0 commit comments

Comments
 (0)