add example mixin configuration
This commit is contained in:
parent
13f1bbb3c2
commit
56ceb7c2cf
|
@ -1,4 +0,0 @@
|
||||||
package org.ecorous.esnesnon.nonsense.loader.example;
|
|
||||||
|
|
||||||
public class ExampleMod {
|
|
||||||
}
|
|
|
@ -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");
|
||||||
|
}
|
||||||
|
}
|
11
minecraft/src/main/resources/example_mod.mixin.config
Normal file
11
minecraft/src/main/resources/example_mod.mixin.config
Normal 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
|
||||||
|
}
|
||||||
|
}
|
|
@ -16,10 +16,6 @@ breaks = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[nonsense.extensions]
|
[nonsense.extensions]
|
||||||
pre_launch = "com/example/nonsense/PreLaunch"
|
pre_launch = "org/ecorous/esnesnon/nonsense/loader/example/ExamplePreLaunchExtension"
|
||||||
main = "com/example/nonsense/Main"
|
mixin_config = "example_mod.mixin.config"
|
||||||
client = "com/example/nonsense/Client"
|
|
||||||
server = "com/example/nonsense/Server"
|
|
||||||
custom_entrypoint = "io/example/nonsense/Custom"
|
|
||||||
other_field = "Some Value"
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue