User Tools

Site Tools


drafts:mixin_injectors

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
drafts:mixin_injectors [2026/02/20 20:31] – [Slice] Fix slice definition example being put within the @At annotation. gauntreclusedrafts:mixin_injectors [2026/02/20 20:39] (current) – [Injection Point, the value attribute] Add CTOR_HEAD injection point gauntrecluse
Line 66: Line 66:
 ^ String Form in Annotation  ^ Function                                                                                ^ ^ String Form in Annotation  ^ Function                                                                                ^
 | ''HEAD''                   | Inject at the earliest possible point in the method                                     | | ''HEAD''                   | Inject at the earliest possible point in the method                                     |
 +| ''CTOR_HEAD''              | For constructors, inject at the earliest possible point after the super call.           |
 | ''RETURN''                 | Inject before every ''RETURN'' instruction in the target method                         | | ''RETURN''                 | Inject before every ''RETURN'' instruction in the target method                         |
 | ''TAIL''                   | Inject before the very last ''RETURN'' instruction in the target method                 | | ''TAIL''                   | Inject before the very last ''RETURN'' instruction in the target method                 |
Line 136: Line 137:
     at = @At(...),     at = @At(...),
     slice = @Slice(     slice = @Slice(
-            from = @At(...), +        from = @At(...), 
-            to = @At(...)+        to = @At(...)
     )     )
 ) )
drafts/mixin_injectors.1771619460.txt.gz · Last modified: 2026/02/20 20:31 by gauntrecluse