mirror of
https://github.com/trafficlunar/options-profiles.git
synced 2026-06-27 22:24:10 +00:00
Initial commit
This commit is contained in:
commit
f41871f359
40 changed files with 2073 additions and 0 deletions
77
fabric/build.gradle
Normal file
77
fabric/build.gradle
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
plugins {
|
||||
id "com.github.johnrengelman.shadow" version "7.1.2"
|
||||
}
|
||||
|
||||
architectury {
|
||||
platformSetupLoomIde()
|
||||
fabric()
|
||||
}
|
||||
|
||||
loom {
|
||||
accessWidenerPath = project(":common").loom.accessWidenerPath
|
||||
}
|
||||
|
||||
configurations {
|
||||
common
|
||||
shadowCommon // Don't use shadow from the shadow plugin since it *excludes* files.
|
||||
compileClasspath.extendsFrom common
|
||||
runtimeClasspath.extendsFrom common
|
||||
developmentFabric.extendsFrom common
|
||||
}
|
||||
|
||||
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}"
|
||||
|
||||
common(project(path: ":common", configuration: "namedElements")) { transitive false }
|
||||
shadowCommon(project(path: ":common", configuration: "transformProductionFabric")) { transitive false }
|
||||
}
|
||||
|
||||
processResources {
|
||||
inputs.property "version", project.version
|
||||
|
||||
filesMatching("fabric.mod.json") {
|
||||
expand "version": project.version
|
||||
}
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
exclude "architectury.common.json"
|
||||
|
||||
configurations = [project.configurations.shadowCommon]
|
||||
archiveClassifier = "dev-shadow"
|
||||
}
|
||||
|
||||
remapJar {
|
||||
injectAccessWidener = true
|
||||
input.set shadowJar.archiveFile
|
||||
dependsOn shadowJar
|
||||
}
|
||||
|
||||
sourcesJar {
|
||||
def commonSources = project(":common").sourcesJar
|
||||
dependsOn commonSources
|
||||
from commonSources.archiveFile.map { zipTree(it) }
|
||||
}
|
||||
|
||||
components.java {
|
||||
withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) {
|
||||
skip()
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
mavenFabric(MavenPublication) {
|
||||
artifactId = rootProject.archives_base_name + "-" + project.name
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
|
||||
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
|
||||
repositories {
|
||||
// Add repositories to publish to here.
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package com.axolotlmaid.optionsprofiles.fabric;
|
||||
|
||||
import com.axolotlmaid.optionsprofiles.OptionsProfilesMod;
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
|
||||
public class OptionsProfilesModFabric implements ModInitializer {
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
OptionsProfilesMod.init();
|
||||
}
|
||||
}
|
||||
BIN
fabric/src/main/resources/assets/optionsprofiles/icon.png
Normal file
BIN
fabric/src/main/resources/assets/optionsprofiles/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
32
fabric/src/main/resources/fabric.mod.json
Normal file
32
fabric/src/main/resources/fabric.mod.json
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "optionsprofiles",
|
||||
"version": "${version}",
|
||||
"name": "Options Profiles",
|
||||
"description": "Load and save your options from in-game.",
|
||||
"authors": [
|
||||
"AxolotlMaid"
|
||||
],
|
||||
"contact": {
|
||||
"homepage": "https://github.com/AxolotlMaid/options-profiles",
|
||||
"sources": "https://github.com/AxolotlMaid/options-profiles",
|
||||
"issues": "https://github.com/AxolotlMaid/options-profiles/issues"
|
||||
},
|
||||
"license": "GNU GPL 3.0",
|
||||
"icon": "assets/optionsprofiles/icon.png",
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"main": [
|
||||
"com.axolotlmaid.optionsprofiles.fabric.OptionsProfilesModFabric"
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"optionsprofiles.mixins.json",
|
||||
"optionsprofiles-common.mixins.json"
|
||||
],
|
||||
"depends": {
|
||||
"fabric": "*",
|
||||
"minecraft": ">=1.20.1",
|
||||
"architectury": ">=9.1.12"
|
||||
}
|
||||
}
|
||||
13
fabric/src/main/resources/optionsprofiles.mixins.json
Normal file
13
fabric/src/main/resources/optionsprofiles.mixins.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"required": true,
|
||||
"package": "com.axolotlmaid.optionsprofiles.mixin.fabric",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"minVersion": "0.8",
|
||||
"client": [
|
||||
],
|
||||
"mixins": [
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue