From 8244882eeb045e92fdb60c6a5c31f3787a5baa1d Mon Sep 17 00:00:00 2001 From: Xavier Niochaut Date: Fri, 11 Sep 2020 21:13:06 +0200 Subject: [PATCH] Created Mixin support (markdown) --- Mixin-support.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Mixin-support.md diff --git a/Mixin-support.md b/Mixin-support.md new file mode 100644 index 0000000..8655e66 --- /dev/null +++ b/Mixin-support.md @@ -0,0 +1,23 @@ +# Base set-up for Minestom extensions +In your extension.json file, add this line: +``` + "mixinConfig": "mixins.testextension.json" +``` +Replace `mixins.testextension.json` with the name of the JSON configuration file for Mixin. + +Example of Mixin configuration for Minestom (`mixins.testextension.json`): +``` +{ + "required": true, + "minVersion": "0.8", + "package": "testextension.mixins", + "target": "@env(DEFAULT)", + "compatibilityLevel": "JAVA_11", + "mixins": [ + "InstanceContainerMixin", + "DynamicChunkMixin" + ] +} +``` + +For more information, check the Mixin wiki and documentation: [Wiki](https://github.com/SpongePowered/Mixin/wiki) and [Documentation](https://docs.spongepowered.org/stable/fr/contributing/implementation/mixins.html) \ No newline at end of file