first commit
This commit is contained in:
commit
b755e01769
12 changed files with 495 additions and 0 deletions
15
src/main/java/net/fabricmc/example/mixin/ExampleMixin.java
Normal file
15
src/main/java/net/fabricmc/example/mixin/ExampleMixin.java
Normal file
|
@ -0,0 +1,15 @@
|
|||
package net.fabricmc.example.mixin;
|
||||
|
||||
import net.minecraft.client.MinecraftGame;
|
||||
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(MinecraftGame.class)
|
||||
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!");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue