And stub the sponge classes so we can build

This commit is contained in:
Sollace 2019-03-27 21:23:03 +02:00
parent 95cf371e4f
commit cb70c333a7
8 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,5 @@
package org.spongepowered.asm.mixin;
public @interface Mixin {
Class<?> value();
}

View file

@ -0,0 +1,5 @@
package org.spongepowered.asm.mixin.gen;
public @interface Accessor {
String value() default "";
}

View 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
}
}

View file

@ -0,0 +1,7 @@
package org.spongepowered.asm.mixin.injection;
public @interface Inject {
String method() default "";
At at();
boolean cancellable() default false;
}

View file

@ -0,0 +1,7 @@
package org.spongepowered.asm.mixin.injection;
public @interface ModifyArg {
String method() default "";
At at();
int index();
}

View file

@ -0,0 +1,6 @@
package org.spongepowered.asm.mixin.injection;
public @interface Redirect {
String[] method() default "";
At at();
}

View file

@ -0,0 +1,5 @@
package org.spongepowered.asm.mixin.injection.callback;
public abstract class CallbackInfo {
public abstract void cancel();
}

View file

@ -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);
}