Package org.spongepowered.asm.mixin.injection.points
package org.spongepowered.asm.mixin.injection.points
Built-in
injection point classes.-
ClassDescriptionThis injection point searches for INVOKEVIRTUAL, INVOKESTATIC and INVOKESPECIAL opcodes matching its arguments and returns a list of insns after the matching instructions, with special handling for methods invocations which return a value and immediately assign it to a local variable.Special injection point which can be defined by an
Constantannotation or using the at code CONSTANT.This injection point searches for GETFIELD and PUTFIELD (and static equivalent) opcodes matching its arguments and returns a list of insns immediately prior to matching instructions.This injection point searches for the last RETURN opcode in the target method and returns it.This injection point searches for INVOKEVIRTUAL, INVOKESTATIC and INVOKESPECIAL opcodes matching its arguments and returns a list of insns immediately prior to matching instructions.Member search type, the PERMISSIVE search is only used when refmap remapping is enabled.This injection point searches for NEW opcodes matching its arguments and returns a list of insns immediately prior to matching instructions.This injection point searches for RETURN opcodes in the target method and returns a list of insns immediately prior to matching instructions.LikeBeforeInvoke, this injection point searches for INVOKEVIRTUAL, INVOKESTATIC and INVOKESPECIAL opcodes matching its arguments and returns a list of insns immediately prior to matching instructions.LikeHEAD, this injection point can be used to specify the first instruction in a method, but provides special handling for constructors.This injection point searches for JUMP opcodes (if, try/catch, continue, break, conditional assignment, etc.) with either a particular opcode or at a particular ordinal in the method body (eg.This injection point simply returns the first instruction in the target method body, allowing the injection to be placed at the "head" of the target method.