mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-24 22:04:23 +00:00
- Implemented advanced recipes on <*> values - Removed unused ZenScript classes - Continued work on any values - Moved documentation generation to buildSrc - Started work on a jar merging task - Added toString implementation to ingredients - Added stack count to ICraftingInventory - Fixed imports - Added logCommand to the logger to log command output - Implemented memory script provider to load scripts received from the server - Added exception handling for script execution - First attempt at creating a transformer to generate a list of ZenClass and ZenExpansion classes - Added console commands (reload, names, liquids, inventory, hand, oredict) - Added general logic - Fixed item ingredients for wildcard sizes - Implemented selective recipe removal - Fixed null recipe results - Started implementation of player-specific recipes - Removed redundant IC2 mod copy - Other minor fixes
35 lines
843 B
Java
35 lines
843 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;
|
|
|
|
/**
|
|
* 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})
|
|
public @interface ZenExpansion {
|
|
/**
|
|
* Contains the type of the annotated class. May be any kind of ZenScript type.
|
|
*
|
|
* Examples:
|
|
* <ul>
|
|
* <li>int</li>
|
|
* <li>my.package.MyClass</li>
|
|
* <li>my.package.MyClass[]</li>
|
|
* <li>any</li>
|
|
* <li>any[]</li>
|
|
* <li>any[any]</li>
|
|
* </li>
|
|
* </ul>
|
|
*
|
|
* @return expanded type
|
|
*/
|
|
public String value();
|
|
}
|