mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-17 02:45:07 +00:00
- Added documentation to some classes
- Created script provider system - Did some refactoring to improve the API
This commit is contained in:
1 parent
38b78ce305
commit
97c7f42400
50 files changed
+1311
-318
No files matched your search
@@ -1,9 +1,3 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package stanhebben.zenscript.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
@@ -15,10 +9,18 @@ import java.lang.annotation.Target;
|
||||
* Indicates a getter. Will make the given method accessible as getter, that is,
|
||||
* it's called when value.name is being used.
|
||||
*
|
||||
* For a native class, no arguments are provided. For an expansion, a single
|
||||
* argument with the source value is provided.
|
||||
*
|
||||
* @author Stan Hebben
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
public @interface ZenGetter {
|
||||
/**
|
||||
* Getter name. If omitted, the method name will be used as value name.
|
||||
*
|
||||
* @return getter name
|
||||
*/
|
||||
String value() default "";
|
||||
}
|
||||
Reference in new issue
Block a user