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 ++++++++++++++++ src/main/resources/mixins.examplemod.json | 11 ----------- src/main/resources/mixins.skyblockplayersanonymous.json | 11 +++++++++++ 6 files changed, 40 insertions(+), 40 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 delete mode 100644 src/main/resources/mixins.examplemod.json create mode 100644 src/main/resources/mixins.skyblockplayersanonymous.json (limited to 'src/main') 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!"); + } +} diff --git a/src/main/resources/mixins.examplemod.json b/src/main/resources/mixins.examplemod.json deleted file mode 100644 index 570a0d0..0000000 --- a/src/main/resources/mixins.examplemod.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "package": "${mixinGroup}", - "refmap": "mixins.${modid}.refmap.json", - "minVersion": "0.7", - "compatibilityLevel": "JAVA_8", - "mixins": [ - ], - "client": [ - "MixinGuiMainMenu" - ] -} diff --git a/src/main/resources/mixins.skyblockplayersanonymous.json b/src/main/resources/mixins.skyblockplayersanonymous.json new file mode 100644 index 0000000..570a0d0 --- /dev/null +++ b/src/main/resources/mixins.skyblockplayersanonymous.json @@ -0,0 +1,11 @@ +{ + "package": "${mixinGroup}", + "refmap": "mixins.${modid}.refmap.json", + "minVersion": "0.7", + "compatibilityLevel": "JAVA_8", + "mixins": [ + ], + "client": [ + "MixinGuiMainMenu" + ] +} -- cgit