Skip to content

Commit

Permalink
Add Mod Menu integration
Browse files Browse the repository at this point in the history
  • Loading branch information
hibiii committed Feb 3, 2024
1 parent 98e75dc commit 5e888ba
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 5 deletions.
1 change: 1 addition & 0 deletions HEADER
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Copyright (c) 2021, 2022, 2023 darkerbit
Copyright (c) 2021, 2022, 2023 triphora
Copyright (c) 2024 hibi

Quilt Loading Screen is under the MIT License. See LICENSE for details.

Expand Down
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Copyright (c) 2021, 2022, 2023 darkerbit
Copyright (c) 2021, 2022, 2023 triphora
Copyright (c) 2024, hibi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies {
modImplementation libs.midnightlib
include libs.midnightlib

modLocalRuntime libs.mod.menu
modImplementation libs.mod.menu
}

// TEMPORARY: until https://github.com/QuiltMC/quilt-loom/issues/28 gets fixed
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ minecraft = '1.20.1'
[libraries]
# https://lambdaurora.dev/tools/import_quilt.html
minecraft = { module = 'com.mojang:minecraft', version.ref = 'minecraft' }
quilt_mappings = 'org.quiltmc:quilt-mappings:1.20.1+build.9'
quilt_mappings = 'org.quiltmc:quilt-mappings:1.20.1+build.23'
quilt_loader = 'org.quiltmc:quilt-loader:0.19.2'
quilted_fabric_api = 'org.quiltmc.quilted-fabric-api:quilted-fabric-api:7.0.5+0.84.0-1.20.1'

midnightlib = 'maven.modrinth:midnightlib:1.4.1-fabric'

mod_menu = 'maven.modrinth:modmenu:7.1.0'
mod_menu = 'maven.modrinth:modmenu:7.2.2'

[bundles]
quilt = ['quilt_loader', 'quilted_fabric_api']

[plugins]
quilt_loom = 'org.quiltmc.loom:1.1.+'
quilt_loom = 'org.quiltmc.loom:1.4.+'
quilt_licenser = 'org.quiltmc.gradle.licenser:1.+'
minotaur = 'com.modrinth.minotaur:2.+'
machete = 'io.github.p03w.machete:2.+'
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2021, 2022, 2023 darkerbit
* Copyright (c) 2021, 2022, 2023 triphora
* Copyright (c) 2024 hibi
*
* Quilt Loading Screen is under the MIT License. See LICENSE for details.
*/

package com.emmacypress.quilt_loading_screen;

import com.terraformersmc.modmenu.api.ConfigScreenFactory;
import com.terraformersmc.modmenu.api.ModMenuApi;

import static com.emmacypress.quilt_loading_screen.QuiltLoadingScreen.MODID;

public class ModMenuInteg implements ModMenuApi {
@Override
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return parent -> Config.getScreen(parent, MODID);
}
}
3 changes: 2 additions & 1 deletion src/main/resources/quilt.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
},
"intermediate_mappings": "net.fabricmc:intermediary",
"entrypoints": {
"client_init": "com.emmacypress.quilt_loading_screen.QLSClientInit"
"client_init": "com.emmacypress.quilt_loading_screen.QLSClientInit",
"modmenu": "com.emmacypress.quilt_loading_screen.ModMenuInteg"
},
"depends": [
"minecraft",
Expand Down

0 comments on commit 5e888ba

Please sign in to comment.