Description
⚠️ Warning: Hyinit is NOT a standard early plugin! Please read the instruction carefully.
🚀 Hyinit
Hyinit is a restriction-free Mixin environment bootstrapper for Hytale. Unlike projects that rely on early plugin system to transform classes, developers can use a full feature set of Mixin and MixinExtras freely, and reference any classes in their early plugin from the injected server code.
Hyinit was created to assist the development of our server patches, Refixes (An actively-maintained Hyfixes / Hyzen Kernel alternative)
✅ Installation
Hyinit is NOT a standard early plugin, so do not place it in the earlyplugins folder. Instead, use Hyinit-X.X.X.jar instead of your standard HytaleServer.jar to launch the server. When launching, make sure that both Hyinit and HytaleServer JARs are in the same directory.
For example, if you are currently using a command like this to start the server normally:
java -Xms10G -Xmx10G -jar HytaleServer.jar --assets=../Assets.zip
You may start the server through Hyinit using the following command instead:
java -Xms10G -Xmx10G -jar Hyinit-X.X.X.jar --assets=../Assets.zip
Now, you can install mod JARs that depend on Hyinit Mixin environment in the earlyplugins folder.
📖 Developer Info
Hyinit's Mixin environment allows ALL standard features in Mixin and MixinExtras. To define a Mixin config in your mod, add the following content to your manifest.json:
{
"Mixins": [
"yourmodid.mixins.json"
]
}
Mods with Mixin must be placed in the earlyplugins folder. Mixin configs will be read on startup, and classes that get loaded afterwards are transformed.
If you came from Hyxin, we have a backwards compatibility with their manifest format:
{
"Hyxin": {
"Configs": [
"yourmodid.mixins.json"
]
}
}

