ZenExpansion

A ZenExpansion is, like @ZenClass, used to annotate a Class that should be accessible from within ZS.
Unlike ZenClasses however, ZenExpansions are used to expand the functionality of already existing ZenClasses.

Example

@ZenExpansion("crafttweaker.item.IItemStack")
@ZenRegister
public class Expansion {
    @ZenMethod
    public static void print(IItemStack stack) {
        CraftTweakerAPI.logInfo("STACKKKKK: " + stack.getDisplayName());
    }
}

This would allow people to do

<minecraft:iron_ingot>.print();

Since this is an expansion the first parameter is the class’ instance!
This parameter will not be available in ZS.

What classes can be annotated || Additional Info