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 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)); }*/ }