A restriction-free Mixin bootstrapper for HytaleServer. Backwards compatible with Hyxin.
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.zipYou may start the server through Hyinit using the following command instead:
java -Xms10G -Xmx10G -jar Hyinit-X.X.X.jar --assets=../Assets.zipNow, you can install mod JARs that depend on Hyinit Mixin environment in the earlyplugins folder.
Hyinit currently does not have its own API, so you should depend directly on FabricMC's Mixin fork and MixinExtras:
dependencies {
// Mixin
compileOnly("net.fabricmc:sponge-mixin:${MIXIN_VERSION}")
// MixinExtras
compileOnly("io.github.llamalad7.mixinextras:mixinextras-fabric:${MIXINEXTRAS_VERSION}")
}Put JARs with your Mixins in the earlyplugins folder.
In manifest.json, add the following entry:
{
"Mixins": [
"your_mixin_config.mixins.json"
]
}manifest.json with the following entry will also be read for compatibility with Hyxin:
{
"Hyxin": {
"Configs": [
"your_mixin_config.mixins.json"
]
}
}The MixinService and the Mixin class loader implementations are partially based on fabric-loader's Knot implementation.