blob: 12cc57b53b147d6d98093e7902f4af00dab0c43a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package com.arslaancodes.arslaansmagichax.mixin;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import java.util.Random;
import net.minecraft.client.gui.components.SplashRenderer;
import net.minecraft.client.resources.SplashManager;
@Mixin(SplashManager.class)
public class SplashTextResourceSupplierMixin {
private static final Random RANDOM = new Random();
/*@Inject(method = "getSplash", at = @At("HEAD"), cancellable = true)
public void onGet(CallbackInfoReturnable<SplashRenderer> cir) {
String[] splashes = {"\"one can only hope.\"", "hackerman approved", "Cheater!", "totally not malware", "cheats for block game", "dont use /surprise"};
String selected = splashes[RANDOM.nextInt(splashes.length)];
cir.setReturnValue(new SplashRenderer(selected));
}*/
}
|