From 4f8ca665888f10504d2995e9bed4b95ea60554c3 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 21 Jul 2023 10:15:53 +0000 Subject: Initialize template repository proper Set package name to com.github.romangraef.skyblockplayersanonymous Set project name to SkyblockPlayersAnonymous Set modid to skyblockplayersanonymous --- src/main/java/com/example/ExampleMod.java | 13 ------------- src/main/java/com/example/mixin/MixinGuiMainMenu.java | 16 ---------------- .../romangraef/skyblockplayersanonymous/ExampleMod.java | 13 +++++++++++++ .../skyblockplayersanonymous/mixin/MixinGuiMainMenu.java | 16 ++++++++++++++++ 4 files changed, 29 insertions(+), 29 deletions(-) delete mode 100644 src/main/java/com/example/ExampleMod.java delete mode 100644 src/main/java/com/example/mixin/MixinGuiMainMenu.java create mode 100644 src/main/java/com/github/romangraef/skyblockplayersanonymous/ExampleMod.java create mode 100644 src/main/java/com/github/romangraef/skyblockplayersanonymous/mixin/MixinGuiMainMenu.java (limited to 'src/main/java/com') diff --git a/src/main/java/com/example/ExampleMod.java b/src/main/java/com/example/ExampleMod.java deleted file mode 100644 index c18b591..0000000 --- a/src/main/java/com/example/ExampleMod.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.example; - -import net.minecraft.init.Blocks; -import net.minecraftforge.fml.common.Mod; -import net.minecraftforge.fml.common.event.FMLInitializationEvent; - -@Mod(modid = "examplemod", useMetadata=true) -public class ExampleMod { - @Mod.EventHandler - public void init(FMLInitializationEvent event) { - System.out.println("Dirt: " + Blocks.dirt.getUnlocalizedName()); - } -} diff --git a/src/main/java/com/example/mixin/MixinGuiMainMenu.java b/src/main/java/com/example/mixin/MixinGuiMainMenu.java deleted file mode 100644 index 47eee87..0000000 --- a/src/main/java/com/example/mixin/MixinGuiMainMenu.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.example.mixin; - -import net.minecraft.client.gui.GuiMainMenu; -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(GuiMainMenu.class) -public class MixinGuiMainMenu { - - @Inject(method = "initGui", at = @At("HEAD")) - public void onInitGui(CallbackInfo ci) { - System.out.println("Hello from Main Menu!"); - } -} diff --git a/src/main/java/com/github/romangraef/skyblockplayersanonymous/ExampleMod.java b/src/main/java/com/github/romangraef/skyblockplayersanonymous/ExampleMod.java new file mode 100644 index 0000000..7fe7102 --- /dev/null +++ b/src/main/java/com/github/romangraef/skyblockplayersanonymous/ExampleMod.java @@ -0,0 +1,13 @@ +package com.github.romangraef.skyblockplayersanonymous; + +import net.minecraft.init.Blocks; +import net.minecraftforge.fml.common.Mod; +import net.minecraftforge.fml.common.event.FMLInitializationEvent; + +@Mod(modid = "skyblockplayersanonymous", useMetadata=true) +public class ExampleMod { + @Mod.EventHandler + public void init(FMLInitializationEvent event) { + System.out.println("Dirt: " + Blocks.dirt.getUnlocalizedName()); + } +} diff --git a/src/main/java/com/github/romangraef/skyblockplayersanonymous/mixin/MixinGuiMainMenu.java b/src/main/java/com/github/romangraef/skyblockplayersanonymous/mixin/MixinGuiMainMenu.java new file mode 100644 index 0000000..c42ad81 --- /dev/null +++ b/src/main/java/com/github/romangraef/skyblockplayersanonymous/mixin/MixinGuiMainMenu.java @@ -0,0 +1,16 @@ +package com.github.romangraef.skyblockplayersanonymous.mixin; + +import net.minecraft.client.gui.GuiMainMenu; +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(GuiMainMenu.class) +public class MixinGuiMainMenu { + + @Inject(method = "initGui", at = @At("HEAD")) + public void onInitGui(CallbackInfo ci) { + System.out.println("Hello from Main Menu!"); + } +} -- cgit