Package com.petrolpark.mixin.plugin
Class PetrolparkMixinPlugin
java.lang.Object
com.petrolpark.mixin.plugin.PetrolparkMixinPlugin
- All Implemented Interfaces:
org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin
public class PetrolparkMixinPlugin
extends Object
implements org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptTargets(Set<String> myTargets, Set<String> otherTargets) protected StringvoidvoidpostApply(String targetClassName, org.objectweb.asm.tree.ClassNode targetClass, String mixinClassName, org.spongepowered.asm.mixin.extensibility.IMixinInfo mixinInfo) voidpreApply(String targetClassName, org.objectweb.asm.tree.ClassNode targetClass, String mixinClassName, org.spongepowered.asm.mixin.extensibility.IMixinInfo mixinInfo) protected voidrequireMultipleMods(String mixinClassName, CompatMods... requiredMods) Tells Mixin to only apply a Mixin if a given Mod is present.booleanshouldApplyMixin(String targetClassName, String mixinClassName)
-
Constructor Details
-
PetrolparkMixinPlugin
public PetrolparkMixinPlugin()
-
-
Method Details
-
getMixinPackage
-
onLoad
- Specified by:
onLoadin interfaceorg.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin
-
requireMultipleMods
Tells Mixin to only apply a Mixin if a given Mod is present.- Parameters:
mixinClassName- Fully-qualified class name. Don't useSomeMixin.getClass().getSimpleName()for this, as this calls the class, which will crash as it can't find the class into which its mixingrequiredMods- Mods upon which this Mixin depends
-
shouldApplyMixin
- Specified by:
shouldApplyMixinin interfaceorg.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin
-
getRefMapperConfig
- Specified by:
getRefMapperConfigin interfaceorg.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin
-
acceptTargets
- Specified by:
acceptTargetsin interfaceorg.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin
-
getMixins
- Specified by:
getMixinsin interfaceorg.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin
-
preApply
public void preApply(String targetClassName, org.objectweb.asm.tree.ClassNode targetClass, String mixinClassName, org.spongepowered.asm.mixin.extensibility.IMixinInfo mixinInfo) - Specified by:
preApplyin interfaceorg.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin
-
postApply
public void postApply(String targetClassName, org.objectweb.asm.tree.ClassNode targetClass, String mixinClassName, org.spongepowered.asm.mixin.extensibility.IMixinInfo mixinInfo) - Specified by:
postApplyin interfaceorg.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin
-