mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
And stub the sponge classes so we can build
This commit is contained in:
parent
95cf371e4f
commit
cb70c333a7
8 changed files with 55 additions and 0 deletions
5
src/api/java/org/spongepowered/asm/mixin/Mixin.java
Normal file
5
src/api/java/org/spongepowered/asm/mixin/Mixin.java
Normal file
|
@ -0,0 +1,5 @@
|
|||
package org.spongepowered.asm.mixin;
|
||||
|
||||
public @interface Mixin {
|
||||
Class<?> value();
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package org.spongepowered.asm.mixin.gen;
|
||||
|
||||
public @interface Accessor {
|
||||
String value() default "";
|
||||
}
|
14
src/api/java/org/spongepowered/asm/mixin/injection/At.java
Normal file
14
src/api/java/org/spongepowered/asm/mixin/injection/At.java
Normal file
|
@ -0,0 +1,14 @@
|
|||
package org.spongepowered.asm.mixin.injection;
|
||||
|
||||
public @interface At {
|
||||
String value() default "";
|
||||
String target() default "";
|
||||
int ordinal() default 0;
|
||||
boolean remap() default true;
|
||||
Shift shift() default Shift.BEFORE;
|
||||
|
||||
enum Shift {
|
||||
BEFORE,
|
||||
AFTER
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package org.spongepowered.asm.mixin.injection;
|
||||
|
||||
public @interface Inject {
|
||||
String method() default "";
|
||||
At at();
|
||||
boolean cancellable() default false;
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package org.spongepowered.asm.mixin.injection;
|
||||
|
||||
public @interface ModifyArg {
|
||||
String method() default "";
|
||||
At at();
|
||||
int index();
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
package org.spongepowered.asm.mixin.injection;
|
||||
|
||||
public @interface Redirect {
|
||||
String[] method() default "";
|
||||
At at();
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package org.spongepowered.asm.mixin.injection.callback;
|
||||
|
||||
public abstract class CallbackInfo {
|
||||
public abstract void cancel();
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
package org.spongepowered.asm.mixin.injection.callback;
|
||||
|
||||
public abstract class CallbackInfoReturnable<T> {
|
||||
public abstract T getReturnValue();
|
||||
public abstract void setReturnValue(T t);
|
||||
}
|
Loading…
Reference in a new issue