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.
13 lines
346 B
Java
13 lines
346 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;
|
|
|
|
@Target(ElementType.TYPE)
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@RequireAnnotation(BlockRegistry.class)
|
|
public @interface PlaceOnSolidNoHandler {
|
|
}
|