summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2015-04-28 18:43:23 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2015-04-28 18:43:23 +0100
commit6317f416d37f08160fb261447aba6cb84dd9886e (patch)
tree0e5b10f29a5b9ab4b035d413ccf30e5e84bf0d56
parentf034b154ec0cbfe03bd2271a2322fed47d1adc81 (diff)
downloadkinniutils-6317f416d37f08160fb261447aba6cb84dd9886e.tar.bz2
Basics
-rw-r--r--build.gradle6
-rw-r--r--settings.gradle2
-rw-r--r--src/main/java/net/flarn/kinniutils/KinniUtils.java9
-rw-r--r--src/main/java/net/flarn/kinniutils/proxy/ClientProxy.java7
-rw-r--r--src/main/java/net/flarn/kinniutils/proxy/CommonProxy.java7
-rw-r--r--src/main/java/net/flarn/kinniutils/proxy/IProxy.java7
-rw-r--r--src/main/java/net/flarn/kinniutils/proxy/ServerProxy.java7
-rw-r--r--src/main/java/net/flarn/kinniutils/refs/Core.java10
-rw-r--r--src/main/resources/META-INF/kinniutils_at.cfg4
9 files changed, 57 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle
index fad80fd..7b2152e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -26,6 +26,12 @@ minecraft {
runDir = "eclipse"
}
+jar {
+ manifest {
+ attributes 'FMLAT': 'kinniutils_at.cfg'
+ }
+}
+
dependencies {
// you may put jars on which you depend on in ./libs
// or you may define them like so..
diff --git a/settings.gradle b/settings.gradle
index 3f3aae2..8d325a2 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -16,4 +16,4 @@ include 'api'
include 'services:webservice'
*/
-rootProject.name = 'app'
+rootProject.name = 'kinniutils'
diff --git a/src/main/java/net/flarn/kinniutils/KinniUtils.java b/src/main/java/net/flarn/kinniutils/KinniUtils.java
index dcfeaa3..63793f5 100644
--- a/src/main/java/net/flarn/kinniutils/KinniUtils.java
+++ b/src/main/java/net/flarn/kinniutils/KinniUtils.java
@@ -1,16 +1,23 @@
package net.flarn.antipp;
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.kinniutils.proxy.IProxy;
+import net.flarn.kinniutils.refs.Core;
-@Mod(modid="KinniUtils", name="Kinnison's Utilities", version="1.7.10-0.0.1")
+@Mod(modid= Core.MOD_ID, name=Core.MOD_NAME, version=Core.MOD_VERSION)
public class KinniUtils {
@Mod.Instance("KinniUtils")
public static KinniUtils instance;
+ @SidedProxy(clientSide = "net.flarn.kinniutils.proxy.ClientProxy", serverSide = "net.flarn.kinniutils.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/kinniutils/proxy/ClientProxy.java b/src/main/java/net/flarn/kinniutils/proxy/ClientProxy.java
new file mode 100644
index 0000000..187b177
--- /dev/null
+++ b/src/main/java/net/flarn/kinniutils/proxy/ClientProxy.java
@@ -0,0 +1,7 @@
+package net.flarn.kinniutils.proxy;
+
+/**
+ * Created by dsilvers on 28/04/15.
+ */
+public class ClientProxy extends CommonProxy {
+}
diff --git a/src/main/java/net/flarn/kinniutils/proxy/CommonProxy.java b/src/main/java/net/flarn/kinniutils/proxy/CommonProxy.java
new file mode 100644
index 0000000..e406d43
--- /dev/null
+++ b/src/main/java/net/flarn/kinniutils/proxy/CommonProxy.java
@@ -0,0 +1,7 @@
+package net.flarn.kinniutils.proxy;
+
+/**
+ * Created by dsilvers on 28/04/15.
+ */
+public class CommonProxy implements IProxy {
+}
diff --git a/src/main/java/net/flarn/kinniutils/proxy/IProxy.java b/src/main/java/net/flarn/kinniutils/proxy/IProxy.java
new file mode 100644
index 0000000..8522cee
--- /dev/null
+++ b/src/main/java/net/flarn/kinniutils/proxy/IProxy.java
@@ -0,0 +1,7 @@
+package net.flarn.kinniutils.proxy;
+
+/**
+ * Created by dsilvers on 28/04/15.
+ */
+public interface IProxy {
+}
diff --git a/src/main/java/net/flarn/kinniutils/proxy/ServerProxy.java b/src/main/java/net/flarn/kinniutils/proxy/ServerProxy.java
new file mode 100644
index 0000000..2d9c170
--- /dev/null
+++ b/src/main/java/net/flarn/kinniutils/proxy/ServerProxy.java
@@ -0,0 +1,7 @@
+package net.flarn.kinniutils.proxy;
+
+/**
+ * Created by dsilvers on 28/04/15.
+ */
+public class ServerProxy extends CommonProxy {
+}
diff --git a/src/main/java/net/flarn/kinniutils/refs/Core.java b/src/main/java/net/flarn/kinniutils/refs/Core.java
new file mode 100644
index 0000000..065c7e0
--- /dev/null
+++ b/src/main/java/net/flarn/kinniutils/refs/Core.java
@@ -0,0 +1,10 @@
+package net.flarn.kinniutils.refs;
+
+/**
+ * Created by dsilvers on 28/04/15.
+ */
+public class Core {
+ public static final String MOD_ID = "KinniUtils";
+ public static final String MOD_NAME = "Kinnison's Utilities";
+ public static final String MOD_VERSION = "1.7.10-0.0.1";
+}
diff --git a/src/main/resources/META-INF/kinniutils_at.cfg b/src/main/resources/META-INF/kinniutils_at.cfg
new file mode 100644
index 0000000..49e4663
--- /dev/null
+++ b/src/main/resources/META-INF/kinniutils_at.cfg
@@ -0,0 +1,4 @@
+# Access tranformers for Kinnison's Utils
+#
+# Those for the Particle Filters
+public net.minecraft.client.particle.EffectRenderer field_78876_b # fxLayers