Class CompatibilityHelper

java.lang.Object
com.llamalad7.mixinextras.utils.CompatibilityHelper

public class CompatibilityHelper extends Object
Helpers for writing code that is compatible with all variants of Mixin 0.8+
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.objectweb.asm.tree.AnnotationNode
    getAnnotation(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info)
     
    static org.spongepowered.asm.mixin.refmap.IMixinContext
    getMixin(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info)
     
    static int
    getOrder(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info)
     
    makeInvalidInjectionException(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info, String message)
     
    static org.spongepowered.asm.mixin.injection.modify.LocalVariableDiscriminator.Context
    makeLvtContext(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info, org.objectweb.asm.Type returnType, boolean argsOnly, org.spongepowered.asm.mixin.injection.struct.Target target, org.objectweb.asm.tree.AbstractInsnNode node)
     
    static void
    preInject(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CompatibilityHelper

      public CompatibilityHelper()
  • Method Details

    • makeInvalidInjectionException

      public static RuntimeException makeInvalidInjectionException(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info, String message)
    • getMixin

      public static org.spongepowered.asm.mixin.refmap.IMixinContext getMixin(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info)
    • makeLvtContext

      public static org.spongepowered.asm.mixin.injection.modify.LocalVariableDiscriminator.Context makeLvtContext(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info, org.objectweb.asm.Type returnType, boolean argsOnly, org.spongepowered.asm.mixin.injection.struct.Target target, org.objectweb.asm.tree.AbstractInsnNode node)
    • preInject

      public static void preInject(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info)
    • getAnnotation

      public static org.objectweb.asm.tree.AnnotationNode getAnnotation(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info)
    • getOrder

      public static int getOrder(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info)