Initial commit

This commit is contained in:
KawaiiZenbo 2022-12-05 08:39:42 -07:00 committed by GitHub
commit 48a71a2259
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 745 additions and 0 deletions

View file

@ -0,0 +1,16 @@
package net.fabricmc.example.mixin;
import net.fabricmc.example.ExampleMod;
import net.minecraft.client.gui.screen.TitleScreen;
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;
@Mixin(TitleScreen.class)
public class ExampleMixin {
@Inject(at = @At("HEAD"), method = "init()V")
private void init(CallbackInfo info) {
ExampleMod.LOGGER.info("This line is printed by an example mod mixin!");
}
}