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 Details

    • PetrolparkMixinPlugin

      public PetrolparkMixinPlugin()
  • Method Details

    • getMixinPackage

      protected String getMixinPackage()
    • onLoad

      public void onLoad(String mixinPackage)
      Specified by:
      onLoad in interface org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin
    • requireMultipleMods

      protected void requireMultipleMods(String mixinClassName, String... requiredModIds)
      Tells Mixin to only apply a Mixin if a given Mod is present.
      Parameters:
      mixinClassName - Fully-qualified class name. Don't use SomeMixin.getClass().getSimpleName() for this, as this calls the class, which will crash as it can't find the class into which its mixing
      requiredModIds - Mods upon which this Mixin depends
    • shouldApplyMixin

      public boolean shouldApplyMixin(String targetClassName, String mixinClassName)
      Specified by:
      shouldApplyMixin in interface org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin
    • getRefMapperConfig

      public String getRefMapperConfig()
      Specified by:
      getRefMapperConfig in interface org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin
    • acceptTargets

      public void acceptTargets(Set<String> myTargets, Set<String> otherTargets)
      Specified by:
      acceptTargets in interface org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin
    • getMixins

      public List<String> getMixins()
      Specified by:
      getMixins in interface org.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:
      preApply in interface org.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:
      postApply in interface org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin