blob: 2851830e1fa2101e1179d77c299958f46d152bfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package makamys.neodymium.mixin;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import makamys.neodymium.Neodymium;
import net.minecraft.client.gui.GuiMainMenu;
@Mixin(GuiMainMenu.class)
abstract class MixinGuiMainMenu {
@Shadow
private String splashText;
@Inject(method = "<init>",
at = @At("RETURN"),
require = 1)
private void postConstructor(CallbackInfo ci) {
splashText = Neodymium.modifySplash(splashText);
}
}
|