Package org.spongepowered.asm.mixin.injection


package org.spongepowered.asm.mixin.injection
Injectors are class postprocessors which search for annotated methods merged by mixins and perform weaving operations as requested.
  • Interface Summary
    Interface
    Description
    Context for an injection point, used to access the mixin as well as the owner method and annotation for the injection point
  • Class Summary
    Class
    Description
    Base class for injection point discovery classes.
  • Enum Class Summary
    Enum Class
    Description
    Shift is used to shift resulting opcodes
    Available options for the Constant.expandZeroConditions() setting.
    Target restriction level for different injection point types when used by restricted injectors (eg.
    Selector type for slice delmiters, ignored for normal injection points.
  • Annotation Interfaces Summary
    Annotation Interface
    Description
    Annotation for specifying the type of InjectionPoint to use to perform an Inject process.
    Usage with callback injectors (@Inject)
    Annotation for specifying the injection point for an ModifyConstant injector.
    A descriptor for matching a target element, for details of usage see DynamicSelectorDesc.
    Collection type for Desc to allow Repeatable to work.
    This annotation can be used on any injector callback to define a value for total required injections across multiple callbacks.
    Specifies that this mixin method should inject a callback (or callbacks) to itself in the target method(s) identified by Inject.method().
    Injection point code for At annotations to use
    Specifies that this mixin method should inject an argument modifier to itself in the target method(s) identified by ModifyArg.method().
    Specifies that this mixin method should inject an multi-argument modifier callback to itself in the target method(s) identified by ModifyArgs.method().
    Specifies that this mixin method should inject a constant modifier callback to itself in the target method(s) identified by ModifyConstant.method() at the specified LDC (or specialised const opcode) instruction in order to adjust the constant value returned.
    Specifies that this mixin method should inject a variable modifier callback to itself in the target method(s) identified by ModifyVariable.method().
    Specifies that this mixin method should redirect the specified method call, field access or object construction (via the new keyword) to the method decorated with this annotation.
    A Slice identifies a section of a method to search for injection points.
    Annotation used to decorate surrogate injector methods.