Skip to content

Commit cd309e7

Browse files
committed
Moved Mixin to seperate plugin...
1 parent 35b2421 commit cd309e7

File tree

11 files changed

+4
-635
lines changed

11 files changed

+4
-635
lines changed

build.gradle

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,6 @@ dependencies {
7676
installer('org.mangorage:installer:4.0.20')
7777
bootstrap("org.mangorage:mangobotbootstrap:1.0.41")
7878

79-
80-
// SpongeMixin...
81-
library('net.fabricmc:sponge-mixin:0.13.4+mixin.0.8.5')
82-
83-
library('net.minecraftforge:modlauncher:10.2.4')
84-
library('net.minecraftforge:securemodules:2.2.21')
85-
86-
library('org.ow2.asm:asm:9.8')
87-
library('org.ow2.asm:asm-util:9.8')
88-
library('org.ow2.asm:asm-analysis:9.8')
89-
library('org.ow2.asm:asm-tree:9.8')
90-
library('org.ow2.asm:asm-commons:9.8')
91-
92-
9379
library('net.dv8tion:JDA:5.3.2')
9480
library('com.google.code.gson:gson:2.10.1')
9581
library('net.minecraftforge:eventbus:7.0-beta.1')

src/main/java/module-info.java

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
open module org.mangorage.mangobotcore {
1+
module org.mangorage.mangobotcore {
22
requires org.jetbrains.annotations;
33
requires org.slf4j;
44
requires net.minecraftforge.eventbus;
@@ -34,22 +34,13 @@
3434
// Core Plugin
3535
exports org.mangorage.mangobotcore;
3636

37-
38-
exports org.mangorage.mixin.core;
39-
4037
exports org.mangorage.mangobotcore.mixin;
4138

42-
43-
// opens org.mangorage.mangobotcore.plugin.internal;
44-
// opens org.mangorage.mangobotcore.plugin.internal.dependency;
45-
// opens org.mangorage.entrypoint;
39+
opens org.mangorage.mangobotcore.plugin.internal;
40+
opens org.mangorage.mangobotcore.plugin.internal.dependency;
41+
opens org.mangorage.entrypoint;
4642

4743

4844
provides org.mangorage.mangobotcore.plugin.api.Plugin with org.mangorage.mangobotcore.MangoBotCore;
49-
provides org.mangorage.bootstrap.api.transformer.IClassTransformer with org.mangorage.mangobotcore.transformer.ExampleTransformer, org.mangorage.mixin.SpongeMixinTransformer;
50-
provides org.spongepowered.asm.service.IGlobalPropertyService with org.mangorage.mixin.core.MixinBlackboardImpl;
51-
5245
uses org.mangorage.mangobotcore.plugin.api.Plugin;
53-
uses org.mangorage.bootstrap.api.transformer.IClassTransformer;
54-
uses org.spongepowered.asm.service.IGlobalPropertyService;
5546
}

src/main/java/org/mangorage/mangobotcore/MangoBotCore.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package org.mangorage.mangobotcore;
22

3-
import org.mangorage.bootstrap.api.loader.MangoLoader;
43
import org.mangorage.mangobotcore.plugin.api.MangoBotPlugin;
54
import org.mangorage.mangobotcore.plugin.api.Plugin;
6-
import org.mangorage.mixin.core.MixinServiceMangoBot;
75

86
import static org.mangorage.mangobotcore.MangoBotCore.ID;
97

@@ -25,15 +23,5 @@ public String getId() {
2523
public void load() {
2624
var a = 1;
2725
new ExampleThing().load();
28-
29-
MangoLoader loader = (MangoLoader) Thread.currentThread().getContextClassLoader();
30-
var bytes = MixinServiceMangoBot.getClassNode(
31-
loader.getClassBytes(
32-
ExampleThing.class.getName()
33-
)
34-
);
35-
36-
37-
var aa = 1;
3826
}
3927
}

src/main/java/org/mangorage/mixin/MixinContainer.java

Lines changed: 0 additions & 78 deletions
This file was deleted.

src/main/java/org/mangorage/mixin/MixinLogger.java

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/main/java/org/mangorage/mixin/SpongeMixinImpl.java

Lines changed: 0 additions & 63 deletions
This file was deleted.

src/main/java/org/mangorage/mixin/SpongeMixinTransformer.java

Lines changed: 0 additions & 59 deletions
This file was deleted.

src/main/java/org/mangorage/mixin/core/MangoBotMixinBootstrap.java

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)