mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-18 19:29:08 +00:00
20 lines
570 B
Java
20 lines
570 B
Java
package stanhebben.zenscript.annotations;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
/**
|
|
* Denotes that this parameter is optional. Inside the script, this parameter
|
|
* may be omitted, in which case it is automatically filled with the default
|
|
* value of that parameter type (false, null or 0). Invalid for @NonNull type.
|
|
*
|
|
* @author Stanneke
|
|
*/
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Target(ElementType.PARAMETER)
|
|
public @interface Optional {
|
|
|
|
}
|