com.llamalad7.mixinextras.injector.ModifyReceiverInjectionInfo Maven / Gradle / Ivy
package com.llamalad7.mixinextras.injector;
import org.objectweb.asm.tree.AnnotationNode;
import org.objectweb.asm.tree.MethodNode;
import org.spongepowered.asm.mixin.injection.code.Injector;
import org.spongepowered.asm.mixin.injection.struct.InjectionInfo;
import org.spongepowered.asm.mixin.injection.struct.InjectionInfo.HandlerPrefix;
import org.spongepowered.asm.mixin.transformer.MixinTargetContext;
@InjectionInfo.AnnotationType(ModifyReceiver.class)
@HandlerPrefix("modifyReceiver")
public class ModifyReceiverInjectionInfo extends MixinExtrasInjectionInfo {
public ModifyReceiverInjectionInfo(MixinTargetContext mixin, MethodNode method, AnnotationNode annotation) {
super(mixin, method, annotation);
}
@Override
protected Injector parseInjector(AnnotationNode injectAnnotation) {
return new ModifyReceiverInjector(this);
}
}