Package org.spongepowered.asm.mixin
Annotation Interface Interface
This annotation is used to define information for a soft-implemented
interface. See
Implements for details.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDescribes the remapping strategy applied to methods matching this interface. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<?> Interface that the parentImplementsindicates the mixin implements.[Required] prefix for implementing interface methods. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionBy default, the annotation processor will attempt to locate an obfuscation mapping for all methods soft-implemented by the interface declared in thisInterfaceannotation, since it is possible that the declared interface may be obfuscated and therefore contain obfuscated member methods.booleanIf set to true, all methods implementing this interface are treated as if they were individually decorated withUnique
-
Element Details
-
iface
Class<?> ifaceInterface that the parentImplementsindicates the mixin implements. The interface will be hot-patched onto the target class as part of the mixin application.- Returns:
- interface to implement
-
prefix
String prefix[Required] prefix for implementing interface methods. Works similarly toShadowprefixes, but must end with a dollar sign ($)- Returns:
- prefix to use
-
unique
boolean uniqueIf set to true, all methods implementing this interface are treated as if they were individually decorated withUnique- Returns:
- true to mark all implementing methods as unique
- Default:
false
-
remap
Interface.Remap remapBy default, the annotation processor will attempt to locate an obfuscation mapping for all methods soft-implemented by the interface declared in thisInterfaceannotation, since it is possible that the declared interface may be obfuscated and therefore contain obfuscated member methods. However since it may be desirable to skip this pass (for example if an interface method intrinsically shadows a soft-implemented method) this setting is provided to restrict or inhibit processing of member methods matching this soft-implements decoration.- Returns:
- Remapping strategy to use, see
Interface.Remapfor details.
- Default:
ALL
-