forked from jzitnik/twodcraft
New annotation @RequireAnnotation can be used on annotations so that all classes with that specific annotation must also have another annotation. If this is not true, test will not pass. This annotation takes array of annotations.
14 lines
353 B
Java
14 lines
353 B
Java
package cz.jzitnik.game.annotations;
|
|
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
import java.lang.annotation.ElementType;
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Target(ElementType.TYPE)
|
|
@RequireAnnotation(ItemRegistry.class)
|
|
public @interface Smeltable {
|
|
String value();
|
|
}
|