summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2014-10-19 14:12:19 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2014-10-19 14:12:19 +0100
commit7420844ff22be83bec4d040d6eaedaa8e6f1f76d (patch)
treeee0fc8714ccf98fb6a3fabb08611b48520401124
parent84d1af01cdf1850595ea8839f526dd80a788a467 (diff)
downloadnoctis-7420844ff22be83bec4d040d6eaedaa8e6f1f76d.tar.bz2
More preparation
-rw-r--r--src/main/java/net/flarn/noctis/Noctis.java10
-rw-r--r--src/main/java/net/flarn/noctis/proxy/ClientProxy.java7
-rw-r--r--src/main/java/net/flarn/noctis/proxy/CommonProxy.java7
-rw-r--r--src/main/java/net/flarn/noctis/proxy/IProxy.java8
-rw-r--r--src/main/java/net/flarn/noctis/proxy/ServerProxy.java7
-rw-r--r--src/main/java/net/flarn/noctis/refs/Refs.java12
-rw-r--r--src/main/java/net/flarn/noctis/utils/LogHelper.java21
7 files changed, 70 insertions, 2 deletions
diff --git a/src/main/java/net/flarn/noctis/Noctis.java b/src/main/java/net/flarn/noctis/Noctis.java
index c0ce20e..37a32a2 100644
--- a/src/main/java/net/flarn/noctis/Noctis.java
+++ b/src/main/java/net/flarn/noctis/Noctis.java
@@ -1,16 +1,22 @@
package net.flarn.noctis;
import cpw.mods.fml.common.Mod;
+import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
+import net.flarn.noctis.proxy.IProxy;
+import net.flarn.noctis.refs.Refs;
-@Mod(modid="Noctis", name="Noctis - Spatio Inter Stellarum", version="1.7.10-0.0.1")
+@Mod(modid = Refs.MOD_ID, name = Refs.MOD_NAME, version = Refs.VERSION)
public class Noctis {
- @Mod.Instance("Noctis")
+ @Mod.Instance(Refs.MOD_ID)
public static Noctis instance;
+ @SidedProxy(clientSide = "net.flarn.noctis.proxy.ClientProxy", serverSide = "net.flarn.noctis.proxy.ServerProxy")
+ public static IProxy proxy;
+
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {
// Network, mod config, items, blocks
diff --git a/src/main/java/net/flarn/noctis/proxy/ClientProxy.java b/src/main/java/net/flarn/noctis/proxy/ClientProxy.java
new file mode 100644
index 0000000..eac2de9
--- /dev/null
+++ b/src/main/java/net/flarn/noctis/proxy/ClientProxy.java
@@ -0,0 +1,7 @@
+package net.flarn.noctis.proxy;
+
+/**
+ * Created by dsilvers on 19/10/14.
+ */
+public class ClientProxy extends CommonProxy {
+}
diff --git a/src/main/java/net/flarn/noctis/proxy/CommonProxy.java b/src/main/java/net/flarn/noctis/proxy/CommonProxy.java
new file mode 100644
index 0000000..1428df2
--- /dev/null
+++ b/src/main/java/net/flarn/noctis/proxy/CommonProxy.java
@@ -0,0 +1,7 @@
+package net.flarn.noctis.proxy;
+
+/**
+ * Created by dsilvers on 19/10/14.
+ */
+public abstract class CommonProxy implements IProxy {
+}
diff --git a/src/main/java/net/flarn/noctis/proxy/IProxy.java b/src/main/java/net/flarn/noctis/proxy/IProxy.java
new file mode 100644
index 0000000..0684f41
--- /dev/null
+++ b/src/main/java/net/flarn/noctis/proxy/IProxy.java
@@ -0,0 +1,8 @@
+package net.flarn.noctis.proxy;
+
+/**
+ * Created by dsilvers on 19/10/14.
+ */
+public interface IProxy {
+
+}
diff --git a/src/main/java/net/flarn/noctis/proxy/ServerProxy.java b/src/main/java/net/flarn/noctis/proxy/ServerProxy.java
new file mode 100644
index 0000000..0a58226
--- /dev/null
+++ b/src/main/java/net/flarn/noctis/proxy/ServerProxy.java
@@ -0,0 +1,7 @@
+package net.flarn.noctis.proxy;
+
+/**
+ * Created by dsilvers on 19/10/14.
+ */
+public class ServerProxy extends CommonProxy {
+}
diff --git a/src/main/java/net/flarn/noctis/refs/Refs.java b/src/main/java/net/flarn/noctis/refs/Refs.java
new file mode 100644
index 0000000..a8043da
--- /dev/null
+++ b/src/main/java/net/flarn/noctis/refs/Refs.java
@@ -0,0 +1,12 @@
+package net.flarn.noctis.refs;
+
+/**
+ * Created by dsilvers on 19/10/14.
+ */
+public class Refs {
+ // Mod strings
+ public static final String MOD_ID = "Noctis";
+ public static final String MOD_NAME = "Noctis - Spatio inter Stellarum";
+ public static final String VERSION = "1.7.10-0.0.1";
+
+}
diff --git a/src/main/java/net/flarn/noctis/utils/LogHelper.java b/src/main/java/net/flarn/noctis/utils/LogHelper.java
new file mode 100644
index 0000000..980520f
--- /dev/null
+++ b/src/main/java/net/flarn/noctis/utils/LogHelper.java
@@ -0,0 +1,21 @@
+package net.flarn.noctis.utils;
+
+import cpw.mods.fml.common.FMLLog;
+import net.flarn.noctis.refs.Refs;
+import org.apache.logging.log4j.Level;
+
+
+public class LogHelper {
+ public static void log(Level logLevel, Object object) {
+ FMLLog.log(Refs.MOD_NAME, logLevel, String.valueOf(object));
+ }
+
+ public static void all(Object object) { log(Level.ALL, object); }
+ public static void debug(Object object) { log(Level.DEBUG, object); }
+ public static void error(Object object) { log(Level.ERROR, object); }
+ public static void fatal(Object object) { log(Level.FATAL, object); }
+ public static void info(Object object) { log(Level.INFO, object); }
+ public static void off(Object object) { log(Level.OFF, object); }
+ public static void trace(Object object) { log(Level.TRACE, object); }
+ public static void warn(Object object) { log(Level.WARN, object); }
+}