commit be64b9afe9c88c79e252e3f52fe53701593f6edb
Author: MTRNord <MTRNord@users.noreply.github.com>
Date: Sun, 4 Jun 2017 14:43:30 +0200
Fix IDE
Signed-off-by: MTRNord <mtrnord1@gmail.com>
Diffstat:
3 files changed, 208 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1,84 @@
+# Created by .ignore support plugin (hsz.mobi)
+### Java template
+# Compiled class file
+*.class
+
+# Log file
+*.log
+
+# BlueJ files
+*.ctxt
+
+# Mobile Tools for Java (J2ME)
+.mtj.tmp/
+
+# Package Files #
+*.jar
+*.war
+*.ear
+*.zip
+*.tar.gz
+*.rar
+
+# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
+hs_err_pid*
+### Gradle template
+.gradle
+/build/
+
+# Ignore Gradle GUI config
+gradle-app.setting
+
+# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
+!gradle-wrapper.jar
+
+# Cache of project
+.gradletasknamecache
+
+# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
+# gradle/wrapper/gradle-wrapper.properties
+### JetBrains template
+# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
+# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
+
+# User-specific stuff:
+.idea/**/workspace.xml
+.idea/**/tasks.xml
+.idea/dictionaries
+.idea/vcs.xml
+
+# Sensitive or high-churn files:
+.idea/**/dataSources/
+.idea/**/dataSources.ids
+.idea/**/dataSources.xml
+.idea/**/dataSources.local.xml
+.idea/**/sqlDataSources.xml
+.idea/**/dynamic.xml
+.idea/**/uiDesigner.xml
+
+# Gradle:
+.idea/**/gradle.xml
+.idea/**/libraries
+
+# Mongo Explorer plugin:
+.idea/**/mongoSettings.xml
+
+## File-based project format:
+*.iws
+
+## Plugin-specific files:
+
+# IntelliJ
+/out/
+
+# mpeltonen/sbt-idea plugin
+.idea_modules/
+
+# JIRA plugin
+atlassian-ide-plugin.xml
+
+# Crashlytics plugin (for Android Studio and IntelliJ)
+com_crashlytics_export_strings.xml
+crashlytics.properties
+crashlytics-build.properties
+fabric.properties
diff --git a/src/main/java/de/nordgedanken/forensicscience/ForensicScience.java b/src/main/java/de/nordgedanken/forensicscience/ForensicScience.java
@@ -0,0 +1,104 @@
+package de.nordgedanken.forensicscience;
+
+import net.minecraft.block.Block;
+import net.minecraft.item.Item;
+import net.minecraftforge.event.RegistryEvent;
+import net.minecraftforge.fml.common.Mod;
+import net.minecraftforge.fml.common.event.FMLInitializationEvent;
+import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
+import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
+import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
+import net.minecraftforge.fml.common.registry.GameRegistry;
+
+@Mod(
+ modid = ForensicScience.MOD_ID,
+ name = ForensicScience.MOD_NAME,
+ version = ForensicScience.VERSION
+)
+public class ForensicScience {
+
+ public static final String MOD_ID = "forensic_science";
+ public static final String MOD_NAME = "ForensicScience";
+ public static final String VERSION = "0.0.1";
+
+ /**
+ * This is the instance of your mod as created by Forge. It will never be null.
+ */
+ @Mod.Instance(MOD_ID)
+ public static ForensicScience INSTANCE;
+
+ /**
+ * This is the first initialization event. Register tile entities here.
+ * The registry events below will have fired prior to entry to this method.
+ */
+ @Mod.EventHandler
+ public void preinit(FMLPreInitializationEvent event) {
+
+ }
+
+ /**
+ * This is the second initialization event. Register custom recipes
+ */
+ @Mod.EventHandler
+ public void init(FMLInitializationEvent event) {
+
+ }
+
+ /**
+ * This is the final initialization event. Register actions from other mods here
+ */
+ @Mod.EventHandler
+ public void postinit(FMLPostInitializationEvent event) {
+
+ }
+
+ /**
+ * Forge will automatically look up and bind blocks to the fields in this class
+ * based on their registry name.
+ */
+ @GameRegistry.ObjectHolder(MOD_ID)
+ public static class Blocks {
+ /*
+ public static final MySpecialBlock mySpecialBlock = null; // placeholder for special block below
+ */
+ }
+
+ /**
+ * Forge will automatically look up and bind items to the fields in this class
+ * based on their registry name.
+ */
+ @GameRegistry.ObjectHolder(MOD_ID)
+ public static class Items {
+ /*
+ public static final ItemBlock mySpecialBlock = null; // itemblock for the block above
+ public static final MySpecialItem mySpecialItem = null; // placeholder for special item below
+ */
+ }
+
+ /**
+ * This is a special class that listens to registry events, to allow creation of mod blocks and items at the proper time.
+ */
+ @Mod.EventBusSubscriber
+ public static class ObjectRegistryHandler {
+ /**
+ * Listen for the register event for creating custom items
+ */
+ @SubscribeEvent
+ public static void addItems(RegistryEvent.Register<Item> event) {
+ /*
+ event.getRegistry().register(new ItemBlock(Blocks.myBlock).setRegistryName(MOD_ID, "myBlock"));
+ event.getRegistry().register(new MySpecialItem().setRegistryName(MOD_ID, "mySpecialItem"));
+ */
+ }
+
+ /**
+ * Listen for the register event for creating custom blocks
+ */
+ @SubscribeEvent
+ public static void addBlocks(RegistryEvent.Register<Block> event) {
+ /*
+ event.getRegistry().register(new MySpecialBlock().setRegistryName(MOD_ID, "mySpecialBlock"));
+ */
+ }
+ }
+}
diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info
@@ -0,0 +1,20 @@
+[
+ {
+ "modid": "forensicScience",
+ "name": "ForensicScience",
+ "description": "A mod providing forensic tools",
+ "version": "${version}",
+ "mcversion": "${mcversion}",
+ "url": "",
+ "updateUrl": "",
+ "authorList": [
+ "MTRNord"
+ ],
+ "credits": "",
+ "logoFile": "",
+ "screenshots": [],
+ "dependencies": [
+ ""
+ ]
+ }
+]