changed some basic stuff

This commit is contained in:
Marcel Marcel 2021-05-21 18:18:32 +02:00
parent 5a12d62522
commit de15912066
5 changed files with 11 additions and 10 deletions

View file

@ -0,0 +1,14 @@
package net.saltymc.eaa;
import net.fabricmc.api.ModInitializer;
public class EaaMod implements ModInitializer {
@Override
public void onInitialize() {
// This code runs as soon as Minecraft is in a mod-load-ready state.
// However, some things (like resources) may still be uninitialized.
// Proceed with mild caution.
System.out.println("EAA Mod initializing...");
}
}

View file

@ -0,0 +1,15 @@
package net.saltymc.eaa.mixin;
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) {
System.out.println("This line is printed by an example mod mixin!");
}
}