Annotation Interface Expression


Allows you to use java-like strings to target complex pieces of bytecode.

Your injector annotation should use @At("MIXINEXTRAS:EXPRESSION"), and your handler method should have an @Expression annotation attached.

See the wiki article for more info.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The expression to match.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    If you want to attach multiple @Expressions to an injector, for example to use one of them in a @Slice, you can give them each ids to differentiate between them.
  • Element Details

    • value

      String[] value
      The expression to match.
    • id

      String id
      If you want to attach multiple @Expressions to an injector, for example to use one of them in a @Slice, you can give them each ids to differentiate between them. You can then select which to reference by specifying At.id().
      Default:
      ""