mirror of
https://github.com/Lucaslah/No-Report-Button.git
synced 2026-01-10 21:17:52 +00:00
feat: add forge support
This commit is contained in:
63
fabric/build.gradle
Normal file
63
fabric/build.gradle
Normal 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()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package me.lucaslah.nrb;
|
||||
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
|
||||
public class NoReportButtonFabric implements ModInitializer {
|
||||
@Override
|
||||
public void onInitialize() {}
|
||||
}
|
||||
34
fabric/src/main/resources/fabric.mod.json
Normal file
34
fabric/src/main/resources/fabric.mod.json
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user