aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthedarkcolour <30441001+thedarkcolour@users.noreply.github.com>2019-11-03 20:44:02 -0800
committerthedarkcolour <30441001+thedarkcolour@users.noreply.github.com>2019-11-03 20:44:02 -0800
commitab5a5bb943e70d7f525f023eebb540bf9ee0ffc6 (patch)
tree1420721c7eca880d6460e5f1879999929b8f9599
parentfec27e4794cef10e04ad840e4f9cf2d52031ae52 (diff)
downloadKotlinForForge-ab5a5bb943e70d7f525f023eebb540bf9ee0ffc6.tar.gz
KotlinForForge-ab5a5bb943e70d7f525f023eebb540bf9ee0ffc6.tar.bz2
KotlinForForge-ab5a5bb943e70d7f525f023eebb540bf9ee0ffc6.zip
Adding files
-rw-r--r--build.gradle2
-rw-r--r--file/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jarbin5809 -> 0 bytes
-rw-r--r--file/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jarbin5761321 -> 0 bytes
-rw-r--r--src/main/resources/patcher.js50
-rw-r--r--thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jarbin0 -> 5929 bytes
-rw-r--r--thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jar.md51
-rw-r--r--thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jar.sha11
-rw-r--r--thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jarbin0 -> 65318 bytes
-rw-r--r--thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jar.md51
-rw-r--r--thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jar.sha11
-rw-r--r--thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.pom (renamed from file/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.pom)2
-rw-r--r--thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.pom.md51
-rw-r--r--thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.pom.sha11
13 files changed, 8 insertions, 52 deletions
diff --git a/build.gradle b/build.gradle
index 13de264..005d8ae 100644
--- a/build.gradle
+++ b/build.gradle
@@ -102,7 +102,7 @@ dependencies {
}
shadowJar {
- classifier = ""
+ classifier = "obf"
dependencies {
include(dependency("org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}"))
include(dependency("org.jetbrains.kotlin:kotlin-stdlib-jdk7:${kotlin_version}"))
diff --git a/file/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jar b/file/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jar
deleted file mode 100644
index 1feb9be..0000000
--- a/file/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jar
+++ /dev/null
Binary files differ
diff --git a/file/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jar b/file/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jar
deleted file mode 100644
index 7cec72c..0000000
--- a/file/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jar
+++ /dev/null
Binary files differ
diff --git a/src/main/resources/patcher.js b/src/main/resources/patcher.js
deleted file mode 100644
index fcfe312..0000000
--- a/src/main/resources/patcher.js
+++ /dev/null
@@ -1,50 +0,0 @@
-function initializeCoreMod() {
-// Unused, remove
- return {
- 'KotlinPatcher': {
- 'target': {
- 'type': 'METHOD',
- 'class': 'net.minecraftforge.fml.javafmlmod.FMLModContainer',
- 'methodName': 'constructMod',
- 'methodDesc': '(Lnet/minecraftforge/fml/LifecycleEventProvider$LifecycleEvent;)V'
- },
- 'transformer': function (methodNode) {
- var VarInsnNode = Java.type('org.objectweb.asm.tree.VarInsnNode');
- var FieldInsnNode = Java.type('org.objectweb.asm.tree.FieldInsnNode');
- var MethodInsnNode = Java.type('org.objectweb.asm.tree.MethodInsnNode');
- var InsnList = Java.type('org.objectweb.asm.tree.InsnList');
- var Opcodes = Java.type('org.objectweb.asm.Opcodes');
- var list = new InsnList();
- list.add(new FieldInsnNode(Opcodes.GETSTATIC, "thedarkcolour/kotlinforforge/AutoKotlinEventBusSubscriber", "INSTANCE", "Lthedarkcolour/kotlinforforge/AutoKotlinEventBusSubscriber;"));
- list.add(new VarInsnNode(Opcodes.ALOAD, 0));
- list.add(new VarInsnNode(Opcodes.ALOAD, 0));
- list.add(new FieldInsnNode(Opcodes.GETFIELD, 'net/minecraftforge/fml/javafmlmod/FMLModContainer', 'scanResults', 'Lnet/minecraftforge/forgespi/language/ModFileScanData;'));
- list.add(new VarInsnNode(Opcodes.ALOAD, 0));
- list.add(new FieldInsnNode(Opcodes.GETFIELD, 'net/minecraftforge/fml/javafmlmod/FMLModContainer', 'modClass', 'Ljava/lang/Class;'));
- list.add(new MethodInsnNode(Opcodes.INVOKEVIRTUAL, 'java/lang/Class', 'getClassLoader', '()Ljava/lang/ClassLoader;', false));
- list.add(new MethodInsnNode(Opcodes.INVOKEVIRTUAL, "thedarkcolour/kotlinforforge/AutoKotlinEventBusSubscriber", "inject", "(Lnet/minecraftforge/fml/ModContainer;Lnet/minecraftforge/forgespi/language/ModFileScanData;Ljava/lang/ClassLoader;)V", false));
-
- for (var i = 0; i < 1000; ++i) {
- var insn = methodNode.instructions.get(i);
- //print('bruh moment');
- if (insn instanceof MethodInsnNode) {
- //print('FOUND A METHODINSNNODE');
- if (insn.desc === '(Lnet/minecraftforge/fml/ModContainer;Lnet/minecraftforge/forgespi/language/ModFileScanData;Ljava/lang/ClassLoader;)V') {
- methodNode.instructions.insertBefore(insn.getPrevious().getPrevious().getPrevious().getPrevious().getPrevious().getPrevious(), list);
- //print('PATCHED FMLMODCONTAINER');
- break;
- }
- }
- }
-
- //var writer = new ClassWriter(ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES);
- //methodNode.accept(writer);
- //var reader = new ClassReader(writer.toByteArray());
- //var cn = new ClassNode();
- //reader.accept(cn, 0);
-
- return methodNode;
- }
- }
- }
-} \ No newline at end of file
diff --git a/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jar b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jar
new file mode 100644
index 0000000..085ef14
--- /dev/null
+++ b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jar
Binary files differ
diff --git a/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jar.md5 b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jar.md5
new file mode 100644
index 0000000..1a1490f
--- /dev/null
+++ b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jar.md5
@@ -0,0 +1 @@
+de722d8d8d23859c6679b8deaf445b62 \ No newline at end of file
diff --git a/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jar.sha1 b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jar.sha1
new file mode 100644
index 0000000..09f460c
--- /dev/null
+++ b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14-sources.jar.sha1
@@ -0,0 +1 @@
+f936ba9006860b4116162781f15668c4073ec806 \ No newline at end of file
diff --git a/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jar b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jar
new file mode 100644
index 0000000..6b873e2
--- /dev/null
+++ b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jar
Binary files differ
diff --git a/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jar.md5 b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jar.md5
new file mode 100644
index 0000000..da94729
--- /dev/null
+++ b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jar.md5
@@ -0,0 +1 @@
+60e1f9b114948faa2d78c7b6963a4872 \ No newline at end of file
diff --git a/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jar.sha1 b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jar.sha1
new file mode 100644
index 0000000..e9f62b3
--- /dev/null
+++ b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.jar.sha1
@@ -0,0 +1 @@
+742712c81e4efbcef8e5fe5fefee0c928dcfa4ff \ No newline at end of file
diff --git a/file/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.pom b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.pom
index 92bc3de..31f5781 100644
--- a/file/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.pom
+++ b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.pom
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>thedarkcolour</groupId>
- <artifactId>KotlinForForge</artifactId>
+ <artifactId>kotlinforforge</artifactId>
<version>0.1.14</version>
<dependencies>
<dependency>
diff --git a/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.pom.md5 b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.pom.md5
new file mode 100644
index 0000000..82d7f26
--- /dev/null
+++ b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.pom.md5
@@ -0,0 +1 @@
+efa8d4c4f41b791d50896bdcd81d7e8e \ No newline at end of file
diff --git a/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.pom.sha1 b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.pom.sha1
new file mode 100644
index 0000000..6d58028
--- /dev/null
+++ b/thedarkcolour/kotlinforforge/0.1.14/kotlinforforge-0.1.14.pom.sha1
@@ -0,0 +1 @@
+71094316222578b98c840ae5bf343c5106121e10 \ No newline at end of file