summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorThatGravyBoat <thatgravyboat@gmail.com>2021-08-26 05:01:51 -0230
committerThatGravyBoat <thatgravyboat@gmail.com>2021-08-26 05:01:51 -0230
commitf71b3ccee2ec9949de7e572375a45dbf1c3fadb8 (patch)
tree6722a0c3e8a1a5fc86d93f88b197db212c4c5faf /src/main
downloadRewardClaim-f71b3ccee2ec9949de7e572375a45dbf1c3fadb8.tar.gz
RewardClaim-f71b3ccee2ec9949de7e572375a45dbf1c3fadb8.tar.bz2
RewardClaim-f71b3ccee2ec9949de7e572375a45dbf1c3fadb8.zip
Initial commit
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/dev/asbyth/template/ForgeTemplate.java15
-rw-r--r--src/main/resources/mcmod.info18
2 files changed, 33 insertions, 0 deletions
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": []
+ }
+]