Initial commit

This commit is contained in:
missingbinary
2021-12-11 13:27:36 -04:00
commit 1a630355c9
571 changed files with 9411 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package net.fabricmc.fishplex;
import net.fabricmc.api.ModInitializer;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class Aspects implements ModInitializer {
// This logger is used to write text to the console and the log file.
// It is considered best practice to use your mod id as the logger's name.
// That way, it's clear which mod wrote info, warnings, and errors.
public static final Logger LOGGER = LogManager.getLogger("aspects");
@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.
LOGGER.info("Hello Fabric world!");
}
}

View File

@@ -0,0 +1,16 @@
package net.fabricmc.fishplex.mixin;
import net.fabricmc.fishplex.Aspects;
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 AspectsMixin {
@Inject(at = @At("HEAD"), method = "init()V")
private void init(CallbackInfo info) {
Aspects.LOGGER.info("This line is printed by an example mod mixin!");
}
}