-
Notifications
You must be signed in to change notification settings - Fork 0
Method Transforms
Tom Martin edited this page Jul 9, 2025
·
1 revision
The two kinds of method transforms work in the same way except:
-
@TransformFromMethodcreates a copy and then applies redirects to it -
@TransformMethodapplies redirects directly to the target method
All transforms must be within a class annotated with @Dasm
Copies Vector2's void add(Vector2) onto Vec2d
@Dasm(value = MainSet.class)
public class Vec2d {
...
public Vec2d() { ... }
@TransformFromMethod(owner = @Ref(Vector2.class), "add(Lexample/Vector2;)V")
public native void add(Vec2d vec2d);
}