Annotation Type Conditional
-
@Retention(RUNTIME) @Target(METHOD) public @interface Conditional
Method Annotation to determine that a method can not be called unless a condition is fulfilled.Condition information is provided with
BooleanProvider
. IfBooleanProvider
for the condition is not specified the method tagged with this annotation will not be called, (Condition is assumed false).Please note that Conditional does not cross method parameter boundaries - (Conditional on a player method does not take into account conditionals of server).