From ce0225043388385da2366d78d1c3013008b30405 Mon Sep 17 00:00:00 2001 From: valoeghese Date: Mon, 4 May 2020 15:29:29 +1200 Subject: [PATCH] package --- .../{net/fabricmc => tk/valoeghese}/example/ExampleMod.java | 2 +- .../valoeghese}/example/mixin/ExampleMixin.java | 5 +++-- src/main/resources/fabric.mod.json | 2 +- src/main/resources/modid.mixins.json | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) rename src/main/java/{net/fabricmc => tk/valoeghese}/example/ExampleMod.java (92%) rename src/main/java/{net/fabricmc => tk/valoeghese}/example/mixin/ExampleMixin.java (79%) diff --git a/src/main/java/net/fabricmc/example/ExampleMod.java b/src/main/java/tk/valoeghese/example/ExampleMod.java similarity index 92% rename from src/main/java/net/fabricmc/example/ExampleMod.java rename to src/main/java/tk/valoeghese/example/ExampleMod.java index e5ed082..3e81f34 100644 --- a/src/main/java/net/fabricmc/example/ExampleMod.java +++ b/src/main/java/tk/valoeghese/example/ExampleMod.java @@ -1,4 +1,4 @@ -package net.fabricmc.example; +package tk.valoeghese.example; import net.fabricmc.api.ModInitializer; diff --git a/src/main/java/net/fabricmc/example/mixin/ExampleMixin.java b/src/main/java/tk/valoeghese/example/mixin/ExampleMixin.java similarity index 79% rename from src/main/java/net/fabricmc/example/mixin/ExampleMixin.java rename to src/main/java/tk/valoeghese/example/mixin/ExampleMixin.java index 4947f61..316b8bf 100644 --- a/src/main/java/net/fabricmc/example/mixin/ExampleMixin.java +++ b/src/main/java/tk/valoeghese/example/mixin/ExampleMixin.java @@ -1,13 +1,14 @@ -package net.fabricmc.example.mixin; +package tk.valoeghese.example.mixin; 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; +import net.minecraft.client.gui.screen.TitleScreen; import net.minecraft.client.screen.MainMenuScreen; -@Mixin(MainMenuScreen.class) +@Mixin(TitleScreen.class) public class ExampleMixin { @Inject(at = @At("HEAD"), method = "init()V") private void init(CallbackInfo info) { diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 4ab9ce7..d7297cc 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -19,7 +19,7 @@ "environment": "*", "entrypoints": { "main": [ - "net.fabricmc.example.ExampleMod" + "tk.valoeghese.example.ExampleMod" ] }, "mixins": [ diff --git a/src/main/resources/modid.mixins.json b/src/main/resources/modid.mixins.json index e243f0a..c1e2bed 100644 --- a/src/main/resources/modid.mixins.json +++ b/src/main/resources/modid.mixins.json @@ -1,6 +1,6 @@ { "required": true, - "package": "net.fabricmc.example.mixin", + "package": "tk.valoeghese.example.mixin", "compatibilityLevel": "JAVA_8", "mixins": [ ],