generated from Legacy-Fabric/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CCC and NEI Compat (Not working yet)
- Loading branch information
1 parent
d0c5e1d
commit e9af0f4
Showing
12 changed files
with
304 additions
and
264 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...va/fr/catcore/fabricatedforge/compat/mixin/codechickencore/DelegatedTransformerMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package fr.catcore.fabricatedforge.compat.mixin.codechickencore; | ||
|
||
import codechicken.core.asm.DelegatedTransformer; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
import java.io.File; | ||
import java.util.jar.JarFile; | ||
|
||
@Mixin(DelegatedTransformer.class) | ||
public class DelegatedTransformerMixin { | ||
@Inject(method = "addTransformer", at = @At("HEAD"), remap = false) | ||
private static void wtfDoesThisDo(String transformer, JarFile jar, File jarFile, CallbackInfo ci) { | ||
System.out.println(transformer + " -> " + jar.getName() + " -> " + jarFile.getName()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.