Skip to content

Commit 5537fa5

Browse files
committed
Add station-api-config module
1 parent 2208e41 commit 5537fa5

9 files changed

Lines changed: 67 additions & 1 deletion

File tree

glass-config-api-v3/src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
]
3737
},
3838
"custom": {
39-
"modmenu:showIfContained": true
39+
"modmenu:api": true
4040
},
4141
"mixins": [
4242
"gcapi.mixins.json"

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ include(":station-transitive-access-wideners-v0")
4747
include(":station-maths-v0")
4848
include(":station-worldgen-api-v0")
4949
include(":glass-config-api-v3")
50+
include(":station-api-configuration")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import net.modificationstation.stationapi.gradle.SubprojectHelpers.getSubprojectVersion
2+
import net.modificationstation.stationapi.gradle.SubprojectHelpers.addModuleDependencies
3+
4+
base.archivesName.set("station-api-config")
5+
version = getSubprojectVersion(project, "1.0.0")
6+
7+
addModuleDependencies(project,
8+
"glass-config-api-v3"
9+
)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This is a specialized module that appears in ModMenu for easy config editing.
2+
# !!DO NOT USE THIS MODULE FOR ANYTHING OTHER THAN CONFIG!!
3+
Also don't refer to values from this for your mods, changes here will not be as thoroughly documented as the rest of the API.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package net.modificationstation.stationapi;
2+
3+
import net.modificationstation.stationapi.api.config.ConfigRoot;
4+
5+
public class StationConfig {
6+
7+
@ConfigRoot(
8+
value = "config",
9+
visibleName = "gui.config.stationapi.main"
10+
)
11+
public static StationConfigData stationConfigData = new StationConfigData();
12+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package net.modificationstation.stationapi;
2+
3+
public class StationConfigData {
4+
}
209 KB
Loading
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Achievement pages
2+
gui.config.stationapi.main=StationAPI Configuration
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"schemaVersion": 1,
3+
"id": "station-achievements-v0",
4+
"version": "${version}",
5+
6+
"name": "Station API Configuration",
7+
"description": "Provides systems for modded achievements, such as achievement pages.",
8+
"authors": [
9+
"Modification Station"
10+
],
11+
"contact": {
12+
"homepage": "https://glass-launcher.net/repo/mod/stationapi",
13+
"sources": "https://github.com/ModificationStation/StationAPI",
14+
"issues": "https://github.com/ModificationStation/StationAPI/issues"
15+
},
16+
17+
"license": "MIT",
18+
"icon": "assets/station-api-configuration/icon.png",
19+
20+
"environment": "*",
21+
"entrypoints": {
22+
"gcapi": [
23+
"net.modificationstation.stationapi.StationConfig"
24+
]
25+
},
26+
27+
"depends": {
28+
"fabricloader": "*",
29+
"minecraft": "1.0.0-beta.7.3"
30+
},
31+
32+
"custom": {
33+
"modmenu:showIfContained": true
34+
}
35+
}

0 commit comments

Comments
 (0)