feat: mod menu integration
This commit is contained in:
parent
aa206fc7e8
commit
e56829232d
3 changed files with 24 additions and 1 deletions
|
|
@ -24,6 +24,13 @@ configurations {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "Terraformers"
|
||||||
|
url = "https://maven.terraformersmc.com/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
modImplementation "net.fabricmc:fabric-loader:$rootProject.fabric_loader_version"
|
modImplementation "net.fabricmc:fabric-loader:$rootProject.fabric_loader_version"
|
||||||
|
|
||||||
|
|
@ -33,6 +40,9 @@ dependencies {
|
||||||
// Architectury API
|
// Architectury API
|
||||||
modImplementation "dev.architectury:architectury-fabric:$rootProject.architectury_api_version"
|
modImplementation "dev.architectury:architectury-fabric:$rootProject.architectury_api_version"
|
||||||
|
|
||||||
|
// Mod Menu API
|
||||||
|
modImplementation("com.terraformersmc:modmenu:13.0.2")
|
||||||
|
|
||||||
common(project(path: ':common', configuration: 'namedElements')) { transitive false }
|
common(project(path: ':common', configuration: 'namedElements')) { transitive false }
|
||||||
shadowBundle project(path: ':common', configuration: 'transformProductionFabric')
|
shadowBundle project(path: ':common', configuration: 'transformProductionFabric')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
package net.trafficlunar.optionsprofiles.fabric;
|
||||||
|
|
||||||
|
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||||
|
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||||
|
import net.trafficlunar.optionsprofiles.gui.ProfilesScreen;
|
||||||
|
|
||||||
|
public class ModMenuApiImpl implements ModMenuApi {
|
||||||
|
@Override
|
||||||
|
public ConfigScreenFactory<?> getModConfigScreenFactory() {
|
||||||
|
return ProfilesScreen::new;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -18,7 +18,8 @@
|
||||||
"entrypoints": {
|
"entrypoints": {
|
||||||
"main": [
|
"main": [
|
||||||
"net.trafficlunar.optionsprofiles.fabric.OptionsProfilesModFabric"
|
"net.trafficlunar.optionsprofiles.fabric.OptionsProfilesModFabric"
|
||||||
]
|
],
|
||||||
|
"modmenu": [ "net.trafficlunar.optionsprofiles.fabric.ModMenuApiImpl" ]
|
||||||
},
|
},
|
||||||
"mixins": [
|
"mixins": [
|
||||||
"optionsprofiles.mixins.json"
|
"optionsprofiles.mixins.json"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue