From f71b3ccee2ec9949de7e572375a45dbf1c3fadb8 Mon Sep 17 00:00:00 2001 From: ThatGravyBoat Date: Thu, 26 Aug 2021 05:01:51 -0230 Subject: Initial commit --- src/main/java/dev/asbyth/template/ForgeTemplate.java | 15 +++++++++++++++ src/main/resources/mcmod.info | 18 ++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 src/main/java/dev/asbyth/template/ForgeTemplate.java create mode 100644 src/main/resources/mcmod.info (limited to 'src/main') diff --git a/src/main/java/dev/asbyth/template/ForgeTemplate.java b/src/main/java/dev/asbyth/template/ForgeTemplate.java new file mode 100644 index 0000000..959cdbc --- /dev/null +++ b/src/main/java/dev/asbyth/template/ForgeTemplate.java @@ -0,0 +1,15 @@ +package dev.asbyth.template; + +import net.minecraft.client.Minecraft; +import net.minecraftforge.fml.common.Mod; +import net.minecraftforge.fml.common.event.FMLInitializationEvent; + +@Mod(modid = "forgetemplate", name = "Forge Template", version = "1.0") +public class ForgeTemplate { + @Mod.EventHandler + public void onFMLInitialization(FMLInitializationEvent event) { + // $USER = The username of the currently logged in user. + // Simply prints out Hello, $USER. + System.out.println("Hello, " + Minecraft.getMinecraft().getSession().getUsername() + "!"); + } +} diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info new file mode 100644 index 0000000..b6aabfc --- /dev/null +++ b/src/main/resources/mcmod.info @@ -0,0 +1,18 @@ +[ + { + "modid": "forgetemplate", + "name": "ForgeTemplate", + "description": "An example template", + "version": "${version}", + "mcversion": "${mcversion}", + "url": "", + "updateUrl": "", + "authorList": [ + "" + ], + "credits": "", + "logoFile": "", + "screenshots": [], + "dependencies": [] + } +] -- cgit