Package com.llamalad7.mixinextras.utils
Class CompatibilityHelper
java.lang.Object
com.llamalad7.mixinextras.utils.CompatibilityHelper
Helpers for writing code that is compatible with all variants of Mixin 0.8+
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.objectweb.asm.tree.AnnotationNodegetAnnotation(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info) static org.spongepowered.asm.mixin.refmap.IMixinContextgetMixin(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info) static intgetOrder(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info) static RuntimeExceptionmakeInvalidInjectionException(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info, String message) static org.spongepowered.asm.mixin.injection.modify.LocalVariableDiscriminator.ContextmakeLvtContext(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 voidpreInject(org.spongepowered.asm.mixin.injection.struct.InjectionInfo info)
-
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)
-