add example mixin configuration

This commit is contained in:
moehreag 2024-05-20 10:59:21 +02:00
parent 13f1bbb3c2
commit 56ceb7c2cf
4 changed files with 27 additions and 10 deletions

View file

@ -1,4 +0,0 @@
package org.ecorous.esnesnon.nonsense.loader.example;
public class ExampleMod {
}

View file

@ -0,0 +1,14 @@
package org.ecorous.esnesnon.nonsense.loader.example;
import org.ecorous.esnesnon.nonsense.loader.api.extensions.PreLaunchExtension;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ExamplePreLaunchExtension implements PreLaunchExtension {
private static final Logger LOGGER = LoggerFactory.getLogger("Example Mod");
@Override
public void onPreLaunch() {
LOGGER.info("Hello World");
}
}

View file

@ -0,0 +1,11 @@
{
"required": true,
"minVersion": "0.8",
"package": "org.ecorous.esnesnon.nonsense.loader.example.mixin",
"compatibilityLevel": "JAVA_21",
"mixins": [],
"client": [],
"injectors": {
"defaultRequire": 1
}
}

View file

@ -16,10 +16,6 @@ breaks = [
]
[nonsense.extensions]
pre_launch = "com/example/nonsense/PreLaunch"
main = "com/example/nonsense/Main"
client = "com/example/nonsense/Client"
server = "com/example/nonsense/Server"
custom_entrypoint = "io/example/nonsense/Custom"
other_field = "Some Value"
pre_launch = "org/ecorous/esnesnon/nonsense/loader/example/ExamplePreLaunchExtension"
mixin_config = "example_mod.mixin.config"