blob: 9b0f5daa1bd6ba7dc2ff9bb37ad09c3974268de5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package ftbsc.lll.processor.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Marks the class as containing an injector for a user-specified {@link Class}.
* It will be discarded unless {@link ftbsc.lll.processor.annotations.Target} and
* {@link Injector} are properly placed within.
* @see Target
* @see Injector
*/
@Retention(RetentionPolicy.SOURCE)
@java.lang.annotation.Target(ElementType.TYPE)
public @interface Patch {
/**
* @return the Minecraft {@link Class} to target for patching
*/
Class<?> value();
/**
* @return the patching reason, for logging, defaults to "No reason specified."
*/
String reason() default "No reason specified.";
}
|