feat: add forge support

This commit is contained in:
2023-02-06 16:47:16 -05:00
parent 10ab15bd4d
commit a9ca8a8e19
21 changed files with 305 additions and 75 deletions

63
fabric/build.gradle Normal file
View File

@@ -0,0 +1,63 @@
plugins {
id "com.github.johnrengelman.shadow" version "7.1.2"
}
architectury {
injectInjectables = false
platformSetupLoomIde()
fabric()
}
configurations {
common
shadowCommon
compileClasspath.extendsFrom common
runtimeClasspath.extendsFrom common
developmentFabric.extendsFrom common
archivesBaseName = rootProject.archives_base_name + "-fabric"
}
dependencies {
modImplementation "net.fabricmc:fabric-loader:${rootProject.properties["fabric_loader_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]
classifier "dev-shadow"
}
remapJar {
input.set shadowJar.archiveFile
dependsOn shadowJar
classifier null
}
jar {
classifier "dev"
}
sourcesJar {
def commonSources = project(":common").sourcesJar
dependsOn commonSources
from commonSources.archiveFile.map { zipTree(it) }
}
components.java {
withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) {
skip()
}
}

View File

@@ -0,0 +1,8 @@
package me.lucaslah.nrb;
import net.fabricmc.api.ModInitializer;
public class NoReportButtonFabric implements ModInitializer {
@Override
public void onInitialize() {}
}

View File

@@ -0,0 +1,34 @@
{
"schemaVersion": 1,
"id": "noreportbutton",
"version": "${version}",
"name": "No Report Button",
"description": "Removes the chat report button from the multiplayer menu screen",
"authors": [
"Lucaslah"
],
"contact": {
"homepage": "https://cssudii.xyz/r/project/no-report-button",
"sources": "https://github.com/Lucalah/no-report-button"
},
"license": "lgpl-3",
"icon": "assets/noreportbutton/icon.png",
"environment": "client",
"entrypoints": {
"main": [
"me.lucaslah.nrb.NoReportButtonFabric"
]
},
"mixins": [
"noreportbutton.mixins.json"
],
"depends": {
"fabricloader": ">=0.14.6",
"minecraft": ">=1.19.3",
"java": ">=17"
}
}