EnumExtenderJS

Quick rating

Community listing page, reviews here may not be monitored by the author.

EnumExtenderJS

No reviews yet

An Enum Extender for kubejs

Mod Loaders
Minecraft

About

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:

description_11fe195b-d6eb-4c01-a549-67491f954c8d.png

description_257c396c-6ff4-4a2f-9d30-cbe33e1a3a56.png

description_15256d62-c0a8-4489-a7bf-cbb433424631.png

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

description_fccb0e1a-60c9-4919-95aa-63d747dc906c.png

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).