ZenOperator

A Method annotated with @ZenOperator cannot be called by instance.method(parameters) but instead uses Tokens like +, ! and the like.

Example

Crafttweaker’s IData

@ZenClass("crafttweaker.data.IData")
@ZenRegister
public interface IData {

    @ZenOperator(OperatorType.ADD)
    IData add(IData other);

    @ZenOperator(OperatorType.SUB)
    IData sub(IData other);

    ...
}

What methods can be annotated || Additional Info