Skip to content

Commit 560551a

Browse files
committed
initial commit (1.16.1)
0 parents  commit 560551a

37 files changed

+3446
-0
lines changed

.editorconfig

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
tab_width = 4
8+
trim_trailing_whitespace = true
9+
10+
[*.md]
11+
trim_trailing_whitespace = false
12+
13+
[*.gradle]
14+
indent_style = tab
15+
16+
[*.java]
17+
indent_style = tab
18+
19+
[*.json]
20+
indent_style = space
21+
indent_size = 2
22+
23+
[quilt.mod.json]
24+
indent_style = tab
25+
tab_width = 2
26+
27+
[*.toml]
28+
indent_style = tab
29+
tab_width = 2
30+
31+
[*.properties]
32+
indent_style = space
33+
indent_size = 2

.gitattributes

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
*.java text eol=lf diff=java
2+
*.gradle text eol=lf diff=java
3+
*.kt text eol=lf diff=kotlin
4+
*.kts text eol=lf diff=kotlin
5+
gradlew text eol=lf
6+
*.bat text eol=crlf
7+
8+
*.md text eol=lf diff=markdown
9+
10+
.editorconfig text eol=lf
11+
12+
*.json text eol=lf
13+
*.json5 text eol=lf
14+
*.properties text eol=lf
15+
*.toml text eol=lf
16+
*.xml text eol=lf diff=html
17+
18+
# Modding specific
19+
*.accesswidener text eol=lf
20+
21+
# These files are binary and should be left untouched
22+
# (binary is a macro for -text -diff)
23+
*.class binary
24+
*.dll binary
25+
*.ear binary
26+
*.jar binary
27+
*.jks binary
28+
*.png binary
29+
*.so binary
30+
*.war binary

.gitignore

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Gradle
2+
.gradle/
3+
build/
4+
out/
5+
classes/
6+
7+
# Quilt Loom
8+
remappedSrc/
9+
run/
10+
11+
# Eclipse
12+
*.launch
13+
14+
# IntelliJ Idea
15+
.idea/
16+
*.iml
17+
*.ipr
18+
*.iws
19+
20+
# Fleet
21+
.fleet/
22+
23+
# Visual Studio Code
24+
.settings/
25+
.vscode/
26+
bin/
27+
.classpath
28+
.project
29+
30+
# Eclipse JDT LS
31+
workspace/
32+
33+
# macOS
34+
*.DS_Store

build.gradle.kts

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
plugins {
2+
id("maven-publish")
3+
id("fabric-loom") version "1.10-SNAPSHOT"
4+
id("ploceus") version "1.10-SNAPSHOT"
5+
}
6+
7+
base {
8+
archivesName = "soundfix"
9+
}
10+
version = "${project.version}+mc${project.property("minecraft_version")}"
11+
group = project.property("maven_group")!!
12+
13+
repositories {
14+
maven ("https://moehreag.duckdns.org/maven/releases")
15+
}
16+
17+
dependencies {
18+
minecraft("com.mojang:minecraft:${project.property("minecraft_version")}")
19+
mappings("net.fabricmc:yarn:${project.property("minecraft_version")}+build.${project.property("yarn_build")}")
20+
21+
modImplementation("net.fabricmc:fabric-loader:${project.property("loader_version")}")
22+
23+
modImplementation("net.fabricmc.fabric-api:fabric-api:${project.property("fapi")}")
24+
implementation(include("org.jcraft:jorbis:0.0.17")!!)
25+
}
26+
27+
tasks.processResources {
28+
inputs.property("version", version)
29+
30+
filesMatching("fabric.mod.json") {
31+
expand("version" to version)
32+
}
33+
}
34+
35+
tasks.withType(JavaCompile::class).configureEach {
36+
options.encoding = "UTF-8"
37+
38+
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_18)) {
39+
options.release = 17
40+
}
41+
}
42+
43+
java {
44+
// Still required by IDEs such as Eclipse and Visual Studio Code
45+
sourceCompatibility = JavaVersion.VERSION_17
46+
targetCompatibility = JavaVersion.VERSION_17
47+
48+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task if it is present.
49+
// If you remove this line, sources will not be generated.
50+
withSourcesJar()
51+
52+
// If this mod is going to be a library, then it should also generate Javadocs in order to aid with development.
53+
// Uncomment this line to generate them.
54+
// withJavadocJar()
55+
}
56+
57+
// If you plan to use a different file for the license, don't forget to change the file name here!
58+
tasks.getByName("jar", Jar::class) {
59+
from("LICENSE") {
60+
rename("^(LICENSE.*?)(\\..*)?$", "\$1_${archiveBaseName}\$2")
61+
}
62+
}
63+
64+
tasks.runClient {
65+
// might not be set
66+
if (project.properties["native_glfw"] == "true") {
67+
val glfwPath = project.properties.getOrDefault("native_glfw_path", "/usr/lib/libglfw.so")
68+
jvmArgs("-Dorg.lwjgl.glfw.libname=$glfwPath")
69+
}
70+
classpath(sourceSets.getByName("test").runtimeClasspath)
71+
}
72+
73+
// Configure the maven publication
74+
publishing {
75+
publications {
76+
create<MavenPublication>("mavenJava") {
77+
artifactId = base.archivesName.get()
78+
from(components["java"])
79+
}
80+
}
81+
82+
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
83+
repositories {
84+
// Add repositories to publish to here.
85+
// Notice: This block does NOT have the same function as the block in the top level.
86+
// The repositories here will be used for publishing your artifact, not for
87+
// retrieving dependencies.
88+
}
89+
}

gradle.properties

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Gradle Properties
2+
org.gradle.jvmargs = -Xmx1G
3+
org.gradle.parallel = true
4+
5+
# Mod Properties
6+
version = 1.0.0
7+
maven_group = io.github.moehreag
8+
archives_base_name = soundfix
9+
10+
# Dependencies - check https://ornithemc.net/develop for the latest versions
11+
minecraft_version = 1.16.1
12+
yarn_build = 21
13+
loader_version = 0.16.10
14+
15+
fapi = 0.18.0+build.387-1.16.1
16+

gradle/wrapper/gradle-wrapper.jar

42.6 KB
Binary file not shown.
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)