@@ -19,21 +19,21 @@ For each platform:<br>
19
19
20
20
``` gradle
21
21
dependencies {
22
- include(implementation(annotationProcessor("com.github.bawnorton.mixinsquared:mixinsquared-fabric:0.1.2-beta.4 ")))
22
+ include(implementation(annotationProcessor("com.github.bawnorton.mixinsquared:mixinsquared-fabric:0.1.2-beta.5 ")))
23
23
}
24
24
```
25
25
26
26
</details >
27
27
<details ><summary >Forge 1.18.2+ with ForgeGradle</summary >
28
28
29
- ### This will not work for Forge 1.18.1 and below, See [ Initialization ] ( #initialization ) .
29
+ ### This will not work for Forge 1.18.1 and below, see ` Any Other Platform `
30
30
31
31
``` gradle
32
32
dependencies {
33
33
// MixinSquared's annotationProcessor MUST be registered BEFORE Mixin's one.
34
- implementation(annotationProcessor("com.github.bawnorton.mixinsquared:mixinsquared-common:0.1.2-beta.4 "))
35
- implementation(jarJar("com.github.bawnorton.mixinsquared:mixinsquared-forge:0.1.2-beta.4 ")) {
36
- jarJar.ranged(it, "[0.1.2-beta.4 ,)")
34
+ implementation(annotationProcessor("com.github.bawnorton.mixinsquared:mixinsquared-common:0.1.2-beta.5 "))
35
+ implementation(jarJar("com.github.bawnorton.mixinsquared:mixinsquared-forge:0.1.2-beta.5 ")) {
36
+ jarJar.ranged(it, "[0.1.2-beta.5 ,)")
37
37
}
38
38
}
39
39
```
@@ -44,39 +44,69 @@ dependencies {
44
44
``` gradle
45
45
dependencies {
46
46
// MixinSquared's annotationProcessor MUST be registered BEFORE Mixin's one.
47
- implementation(annotationProcessor("com.github.bawnorton.mixinsquared:mixinsquared-common:0.1.2-beta.4 "))
48
- implementation(jarJar("com.github.bawnorton.mixinsquared:mixinsquared-neoforge:0.1.2-beta.4 ")) {
49
- jarJar.ranged(it, "[0.1.2-beta.4 ,)")
47
+ implementation(annotationProcessor("com.github.bawnorton.mixinsquared:mixinsquared-common:0.1.2-beta.5 "))
48
+ implementation(jarJar("com.github.bawnorton.mixinsquared:mixinsquared-neoforge:0.1.2-beta.5 ")) {
49
+ jarJar.ranged(it, "[0.1.2-beta.5 ,)")
50
50
}
51
51
}
52
52
```
53
53
54
54
</details >
55
55
<details ><summary >Forge 1.18.2+ with Architectury Loom</summary >
56
56
57
- ### This will not work for Forge 1.18.1 and below, See [ Initialization ] ( #initialization ) .
57
+ ### This will not work for Forge 1.18.1 and below, see ` Any Other Platform `
58
58
59
59
``` gradle
60
60
dependencies {
61
- implementation(annotationProcessor("com.github.bawnorton.mixinsquared:mixinsquared-common:0.1.2-beta.4 "))
62
- implementation(include("com.github.bawnorton.mixinsquared:mixinsquared-forge:0.1.2-beta.4 "))
61
+ implementation(annotationProcessor("com.github.bawnorton.mixinsquared:mixinsquared-common:0.1.2-beta.5 "))
62
+ implementation(include("com.github.bawnorton.mixinsquared:mixinsquared-forge:0.1.2-beta.5 "))
63
63
}
64
64
```
65
65
66
66
</details >
67
67
68
- ## Initialization
68
+ </details >
69
+ <details ><summary >Any Other Platform</summary >
70
+
71
+ This is only a rough guide. You will need to look into the specifics of setting up ShadowJar for your platform.
72
+
73
+ ``` gradle
74
+ plugins {
75
+ id "com.github.johnrengelman.shadow" version "8.1.0"
76
+ }
77
+
78
+ configurations {
79
+ implementation.extendsFrom shadow
80
+ }
81
+
82
+ repositories {
83
+ maven { url = "https://jitpack.io" }
84
+ }
69
85
70
- If you are on Fabric, Quilt or Forge 1.18.2+ MixinSquared will automatically initiate, otherwise you will need to call:
86
+ dependencies {
87
+ shadow(annotationProcessor("com.github.bawnorton.mixinsquared:mixinsquared-common:0.1.2-beta.5"))
88
+ }
89
+
90
+ shadowJar {
91
+ configurations = [project.configurations.shadow]
92
+ relocate("com.github.bawnorton.mixinsquared", "your.package.goes.here.mixinsquared")
93
+ mergeServiceFiles()
94
+ }
95
+ ```
96
+
97
+ To initialize MixinSquared, simply call
71
98
72
99
``` java
73
100
MixinSquaredBootstrap . init();
101
+ ```
102
+ In the ` onLoad ` method inside a [ IMixinConfigPlugin] ( https://jenkins.liteloader.com/view/Other/job/Mixin/javadoc/org/spongepowered/asm/mixin/extensibility/IMixinConfigPlugin.html )
74
103
75
- // If you intend to use a MixinCanceller, you will need to call:
104
+ If you intend to use a MixinCanceller, you will need to also call:
105
+ ```
76
106
MixinCancellerRegistrar.register(new YourMixinCancellerImpl());
77
107
```
78
108
79
- In the ` onLoad ` method inside a [ IMixinConfigPlugin ] ( https://jenkins.liteloader.com/view/Other/job/Mixin/javadoc/org/spongepowered/asm/mixin/extensibility/IMixinConfigPlugin.html )
109
+ </ details >
80
110
81
111
### Credits
82
112
0 commit comments