mirror of
https://github.com/darksaid98/draggable_lists.git
synced 2026-12-02 22:16:55 +00:00
First commit and add config options
This commit is contained in:
45 files changed
+1533
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package com.mrmelon54.Draggable.forge;
|
||||
|
||||
import dev.architectury.platform.forge.EventBuses;
|
||||
import com.mrmelon54.Draggable.Draggable;
|
||||
import net.minecraftforge.client.ConfigScreenHandler;
|
||||
import net.minecraftforge.client.ConfigScreenHandler.ConfigScreenFactory;
|
||||
import net.minecraftforge.fml.ModLoadingContext;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||
|
||||
@Mod(Draggable.MOD_ID)
|
||||
public class DraggableForge {
|
||||
public DraggableForge() {
|
||||
// Submit our event bus to let architectury register our content on the right time
|
||||
EventBuses.registerModEventBus(Draggable.MOD_ID, FMLJavaModLoadingContext.get().getModEventBus());
|
||||
ModLoadingContext.get().registerExtensionPoint(ConfigScreenFactory.class, () -> new ConfigScreenFactory((mc, screen) -> Draggable.createConfigScreen(screen).get()));
|
||||
|
||||
Draggable.init();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.mrmelon54.Draggable.forge;
|
||||
|
||||
import com.mrmelon54.Draggable.ExampleExpectPlatform;
|
||||
import net.minecraftforge.fml.loading.FMLPaths;
|
||||
|
||||
import java.nio.file.Path;
|
||||
|
||||
public class ExampleExpectPlatformImpl {
|
||||
/**
|
||||
* This is our actual method to {@link ExampleExpectPlatform#getConfigDirectory()}.
|
||||
*/
|
||||
public static Path getConfigDirectory() {
|
||||
return FMLPaths.CONFIGDIR.get();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
modLoader = "javafml"
|
||||
loaderVersion = "[46,)"
|
||||
issueTrackerURL = "https://github.com/MrMelon54/draggable/issues"
|
||||
license = "GPL-3.0-only"
|
||||
|
||||
[[mods]]
|
||||
modId = "draggable"
|
||||
version = "${version}"
|
||||
displayName = "Draggable"
|
||||
authors = "MrMelon54"
|
||||
description = "Draggable resource packs, datapacks, servers and worlds"
|
||||
logoFile = "/icon.png"
|
||||
|
||||
[[dependencies.draggable]]
|
||||
modId = "forge"
|
||||
mandatory = true
|
||||
versionRange = "[46,)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
||||
[[dependencies.draggable]]
|
||||
modId = "minecraft"
|
||||
mandatory = true
|
||||
versionRange = "[1.20,)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
||||
[[dependencies.draggable]]
|
||||
modId = "architectury"
|
||||
mandatory = true
|
||||
versionRange = "[9.0.0,)"
|
||||
ordering = "AFTER"
|
||||
side = "BOTH"
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"required": true,
|
||||
"package": "com.mrmelon54.Draggable.mixin.forge",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"minVersion": "0.8",
|
||||
"client": [
|
||||
],
|
||||
"mixins": [
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"pack": {
|
||||
"description": "Draggable",
|
||||
"pack_format": 15
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user