2018-11-03 18:22:32 -04:00
|
|
|
package net.fabricmc.example.mixin;
|
|
|
|
|
2019-12-10 14:54:45 -05:00
|
|
|
import net.minecraft.client.gui.screen.TitleScreen;
|
2018-11-03 18:22:32 -04:00
|
|
|
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.CallbackInfo;
|
|
|
|
|
2019-12-10 14:54:45 -05:00
|
|
|
@Mixin(TitleScreen.class)
|
2018-11-03 18:22:32 -04:00
|
|
|
public class ExampleMixin {
|
|
|
|
@Inject(at = @At("HEAD"), method = "init()V")
|
|
|
|
private void init(CallbackInfo info) {
|
|
|
|
System.out.println("This line is printed by an example mod mixin!");
|
|
|
|
}
|
|
|
|
}
|