forked from gudenau/minecraft-gudasm
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebrand to Bytecode Junkie, retaining APIs and adding "provides" for …
…`gud_asm`
- Loading branch information
Showing
14 changed files
with
113 additions
and
89 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ pluginManagement { | |
} | ||
} | ||
|
||
rootProject.name = 'gudasm' | ||
rootProject.name = 'bytecode-junkie' |
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,17 @@ | ||
package gay.ampflower.junkie;// Created 2023-23-01T02:53:19 | ||
|
||
import net.fabricmc.loader.api.entrypoint.PreLaunchEntrypoint; | ||
import net.gudenau.minecraft.asm.impl.Bootstrap; | ||
|
||
/** | ||
* Secondary, fallback, bootstrapping route for Bytecode Junkie. | ||
* | ||
* @author Ampflower | ||
* @since 0.3.2 | ||
**/ | ||
public class PreLaunch implements PreLaunchEntrypoint { | ||
@Override | ||
public void onPreLaunch() { | ||
Bootstrap.setup(); | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
src/main/java/gay/ampflower/junkie/internal/mixin/MixinBootstrap.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,56 @@ | ||
package gay.ampflower.junkie.internal.mixin;// Created 2023-23-01T02:54:27 | ||
|
||
import net.gudenau.minecraft.asm.impl.Bootstrap; | ||
import org.objectweb.asm.tree.ClassNode; | ||
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin; | ||
import org.spongepowered.asm.mixin.extensibility.IMixinInfo; | ||
|
||
import java.util.List; | ||
import java.util.Set; | ||
|
||
/** | ||
* Primary bootstrapping route for Bytecode Junkie. | ||
* | ||
* @author Ampflower | ||
* @since 0.3.2 | ||
**/ | ||
public class MixinBootstrap implements IMixinConfigPlugin { | ||
static { | ||
Bootstrap.setup(); | ||
} | ||
|
||
@Override | ||
public void onLoad(final String mixinPackage) { | ||
|
||
} | ||
|
||
@Override | ||
public String getRefMapperConfig() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public boolean shouldApplyMixin(final String targetClassName, final String mixinClassName) { | ||
return false; | ||
} | ||
|
||
@Override | ||
public void acceptTargets(final Set<String> myTargets, final Set<String> otherTargets) { | ||
|
||
} | ||
|
||
@Override | ||
public List<String> getMixins() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public void preApply(final String targetClassName, final ClassNode targetClass, final String mixinClassName, final IMixinInfo mixinInfo) { | ||
|
||
} | ||
|
||
@Override | ||
public void postApply(final String targetClassName, final ClassNode targetClass, final String mixinClassName, final IMixinInfo mixinInfo) { | ||
|
||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"required": true, | ||
"minVersion": "0.8", | ||
"package": "gay.ampflower.junkie.internal.mixin", | ||
"compatibilityLevel": "JAVA_8", | ||
"plugin": "gay.ampflower.junkie.internal.mixin.MixinBootstrap" | ||
} |
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
This file was deleted.
Oops, something went wrong.