From 80ef02479b4119a5a4b5e99bf05bd948170bd5b3 Mon Sep 17 00:00:00 2001 From: nea Date: Thu, 6 Oct 2022 20:40:09 +0200 Subject: Add kotlin to template --- src/main/java/com/example/ExampleMod.java | 16 ---------------- src/main/java/com/example/mixin/MixinGuiMainMenu.java | 16 ---------------- 2 files changed, 32 deletions(-) delete mode 100644 src/main/java/com/example/ExampleMod.java delete mode 100644 src/main/java/com/example/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 2ce1671..0000000 --- a/src/main/java/com/example/ExampleMod.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.example; - -import net.minecraft.client.renderer.GlStateManager; -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()); - // Below is a demonstration of an access-transformed class access. - System.out.println("Color State: " + new GlStateManager.Color()); - } -} 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!"); - } -} -- cgit