mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-18 19:29:08 +00:00
format all the things!
This commit is contained in:
1 parent
54ec75fd3d
commit
b36c6dade6
377 files changed
+6833
-6772
No files matched your search
@@ -6,7 +6,8 @@ import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Makes a class implementing List expose itself as iterable over keys and values.
|
||||
* Makes a class implementing List expose itself as iterable over keys and
|
||||
* values.
|
||||
*
|
||||
* @author Stan Hebben
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,8 @@ import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Makes a class implementing Map expose itself as iterable over keys and values.
|
||||
* Makes a class implementing Map expose itself as iterable over keys and
|
||||
* values.
|
||||
*
|
||||
* @author Stan Hebben
|
||||
*/
|
||||
@@ -14,5 +15,6 @@ import java.lang.annotation.Target;
|
||||
@Target(ElementType.TYPE)
|
||||
public @interface IterableMap {
|
||||
String key();
|
||||
|
||||
String value();
|
||||
}
|
||||
@@ -13,5 +13,5 @@ import java.lang.annotation.Target;
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.PARAMETER)
|
||||
public @interface NotNull {
|
||||
|
||||
|
||||
}
|
||||
@@ -15,5 +15,5 @@ import java.lang.annotation.Target;
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.PARAMETER)
|
||||
public @interface Optional {
|
||||
|
||||
|
||||
}
|
||||
@@ -17,5 +17,5 @@ import java.lang.annotation.Target;
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
public @interface ZenCaster {
|
||||
|
||||
|
||||
}
|
||||
@@ -12,13 +12,13 @@ import java.lang.annotation.Target;
|
||||
* @author Stan Hebben
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||
@Target({ ElementType.TYPE, ElementType.METHOD })
|
||||
public @interface ZenClass {
|
||||
/**
|
||||
* Contains the class' package and name. If omitted, the java package and
|
||||
* name will be used.
|
||||
*
|
||||
* @return
|
||||
* @return
|
||||
*/
|
||||
String value() default "";
|
||||
}
|
||||
@@ -6,16 +6,17 @@ import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Indicates that the given class contains an expansion for a certain type.
|
||||
* The expansions themselves are given through annotated static methods.
|
||||
* Indicates that the given class contains an expansion for a certain type. The
|
||||
* expansions themselves are given through annotated static methods.
|
||||
*
|
||||
* @author Stan Hebben
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||
@Target({ ElementType.TYPE, ElementType.METHOD })
|
||||
public @interface ZenExpansion {
|
||||
/**
|
||||
* Contains the type of the annotated class. May be any kind of ZenScript type.
|
||||
* Contains the type of the annotated class. May be any kind of ZenScript
|
||||
* type.
|
||||
*
|
||||
* Examples:
|
||||
* <ul>
|
||||
|
||||
@@ -6,9 +6,9 @@ import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Indicates a member getter. A member getter is a special kind of operator which
|
||||
* is a fallback if a member could not be resolved. Can be used to make contents
|
||||
* available as if they were members.
|
||||
* Indicates a member getter. A member getter is a special kind of operator
|
||||
* which is a fallback if a member could not be resolved. Can be used to make
|
||||
* contents available as if they were members.
|
||||
*
|
||||
* If this method is a native class, it accepts a single string parameter with
|
||||
* the member name. If this method is an expansion method, it accepts the source
|
||||
@@ -19,5 +19,5 @@ import java.lang.annotation.Target;
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
public @interface ZenMemberGetter {
|
||||
|
||||
|
||||
}
|
||||
@@ -9,8 +9,8 @@ import java.lang.annotation.Target;
|
||||
* Used to indicate a member setter. Companion to member getters, but allow
|
||||
* setting contents of this object as if they were members.
|
||||
*
|
||||
* If this method is a native class, it accepts a string parameter with
|
||||
* the member name and a second parameter with the value. If this method is an
|
||||
* If this method is a native class, it accepts a string parameter with the
|
||||
* member name and a second parameter with the value. If this method is an
|
||||
* expansion method, it accepts the source value, the member name and the value
|
||||
* to be assigned.
|
||||
*
|
||||
@@ -19,5 +19,5 @@ import java.lang.annotation.Target;
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
public @interface ZenMemberSetter {
|
||||
|
||||
|
||||
}
|
||||
@@ -8,9 +8,9 @@ import java.lang.annotation.Target;
|
||||
/**
|
||||
* Used to indicate an exposed method.
|
||||
*
|
||||
* If this method is part of a native class, it will simply accept the parameters
|
||||
* as provided. If it is part of an expansion method, it will also accept the
|
||||
* instance value as first parameter.
|
||||
* If this method is part of a native class, it will simply accept the
|
||||
* parameters as provided. If it is part of an expansion method, it will also
|
||||
* accept the instance value as first parameter.
|
||||
*
|
||||
* @author Stan Hebben
|
||||
*/
|
||||
|
||||
@@ -12,8 +12,8 @@ import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Used to indicate static methods for expansions. For native classes, use ZenMethod
|
||||
* instead on a static method.
|
||||
* Used to indicate static methods for expansions. For native classes, use
|
||||
* ZenMethod instead on a static method.
|
||||
*
|
||||
* @author Stan Hebben
|
||||
*/
|
||||
|
||||
@@ -6,8 +6,8 @@ import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Used to annotate setters. Will make the given method accessible as setter, that is,
|
||||
* it's called when value.name is being assinged a value.
|
||||
* Used to annotate setters. Will make the given method accessible as setter,
|
||||
* that is, it's called when value.name is being assinged a value.
|
||||
*
|
||||
* For a native class, a single argument with the assinged value is provided.
|
||||
* For an expansion, the target object and assigned value are provided.
|
||||
|
||||
Reference in new issue
Block a user