promotional bannermobile promotional banner
premium banner
An Enum Extender for kubejs

Description

An Enum Extender for kubejs

The first step: go to kubejs/enum_extender.json and add the enum target.

belike:

 

The format is <className>-<extenderScriptName>.

Step 2: go to kubejs/enum_extender_scripts and add extender script.

belike:

the method args is unique identifier for enum (VERY_HARD and THES_CREATE) and the normal arges

the create method can only be used in extender scripts, and if you try use this method in other scripts(server or startup or client), thie method will do nothing and return null.

There is no code completion, but you can write it where there is code completion and then copy it :)

the JavaWapper in extender scripts also have class filte(copy from kubejs and probejs).