feat: 1.20.6 - 1.21 neoforge support

This commit is contained in:
darksaid98 committed 2024-07-15 04:00:59 +02:00
1 parent 0020ca4197
commit 642bc5b988
10 files changed
+43 -40

No files matched your search

@@ -0,0 +1,18 @@
package com.mrmelon54.DraggableLists.neoforge;
import com.mrmelon54.DraggableLists.DraggableLists;
import net.neoforged.fml.ModLoadingContext;
import net.neoforged.fml.common.Mod;
import net.neoforged.fml.loading.FMLEnvironment;
import net.neoforged.neoforge.client.gui.IConfigScreenFactory;
@Mod(DraggableLists.MOD_ID)
public class DraggableListsNeoforge {
public DraggableListsNeoforge() {
if (!FMLEnvironment.dist.isClient())
return;
ModLoadingContext.get().registerExtensionPoint(IConfigScreenFactory.class, () -> (client, parent) -> DraggableLists.createConfigScreen(parent).get());
DraggableLists.init();
}
}
@@ -0,0 +1,39 @@
modLoader = "javafml"
loaderVersion = "*"
issueTrackerURL = "https://github.com/mrmelon54/draggable_lists/issues"
license = "GPL-3.0-only"
[[mods]]
modId = "draggable_lists"
version = "${version}"
displayName = "Draggable Lists"
authors = "MrMelon54"
description = "${description}"
logoFile = "/icon.png"
[[dependencies.draggable_lists]]
modId = "minecraft"
mandatory = true
versionRange = "${minecraft_version}"
ordering = "NONE"
side = "BOTH"
[[dependencies.draggable_lists]]
modId = "architectury"
mandatory = true
versionRange = "[${architectury_version},)"
ordering = "AFTER"
side = "BOTH"
[[dependencies.draggable_lists]]
modId = "cloth_config"
mandatory = true
versionRange = "[${cloth_config_version},)"
ordering = "AFTER"
side = "BOTH"
[[mixins]]
config = "draggable_lists-common.mixins.json"
[[mixins]]
config = "draggable_lists.mixins.json"
@@ -0,0 +1,13 @@
{
"required": true,
"package": "com.mrmelon54.DraggableLists.mixin.neoforge",
"compatibilityLevel": "JAVA_21",
"minVersion": "0.8",
"client": [
],
"mixins": [
],
"injectors": {
"defaultRequire": 1
}
}
+6
View File
@@ -0,0 +1,6 @@
{
"pack": {
"description": "Draggable Lists",
"pack_format": 15
}
}