mirror of
https://github.com/darksaid98/draggable_lists.git
synced 2026-12-03 22:16:14 +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,16 @@
|
||||
architectury {
|
||||
common(rootProject.enabled_platforms.split(","))
|
||||
}
|
||||
|
||||
loom {
|
||||
accessWidenerPath = project(":common").loom.accessWidenerPath
|
||||
}
|
||||
|
||||
dependencies {
|
||||
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
|
||||
modApi "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"
|
||||
// Remove the next line if you don't want to depend on the API
|
||||
modApi "dev.architectury:architectury-fabric:${rootProject.architectury_version}"
|
||||
|
||||
compileClasspath(project(path: ":common", configuration: "namedElements")) { transitive false }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.mrmelon54.Draggable.fabriclike;
|
||||
|
||||
import com.mrmelon54.Draggable.Draggable;
|
||||
|
||||
public class DraggableFabricLike {
|
||||
public static void init() {
|
||||
Draggable.init();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.mrmelon54.Draggable.fabriclike;
|
||||
|
||||
import com.mrmelon54.Draggable.config.ConfigStructure;
|
||||
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||
import me.shedaniel.autoconfig.AutoConfig;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
public class ModMenuIntegration implements ModMenuApi {
|
||||
@Override
|
||||
public ConfigScreenFactory<?> getModConfigScreenFactory() {
|
||||
return parent -> AutoConfig.getConfigScreen(ConfigStructure.class, parent).get();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user