spotless (#34)
* Do not hardcode tag names and remove not needed README comment * Remove useless dependencies * Deduplicate build code * Run spotless to keep codebase clean
This commit is contained in:
@@ -15,42 +15,6 @@ repositories {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("xyz.wagyourtail.unimined:xyz.wagyourtail.unimined.gradle.plugin:1.2.15-SNAPSHOT")
|
implementation("xyz.wagyourtail.unimined:xyz.wagyourtail.unimined.gradle.plugin:1.2.15-SNAPSHOT")
|
||||||
|
implementation("io.freefair.gradle:lombok-plugin:8.10.2")
|
||||||
// guava
|
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.25.0")
|
||||||
implementation("com.google.guava:guava:31.1-jre")
|
|
||||||
|
|
||||||
// gson
|
|
||||||
implementation("com.google.code.gson:gson:2.9.0")
|
|
||||||
|
|
||||||
// asm
|
|
||||||
implementation("org.ow2.asm:asm:9.5")
|
|
||||||
implementation("org.ow2.asm:asm-commons:9.5")
|
|
||||||
implementation("org.ow2.asm:asm-tree:9.5")
|
|
||||||
implementation("org.ow2.asm:asm-analysis:9.5")
|
|
||||||
implementation("org.ow2.asm:asm-util:9.5")
|
|
||||||
|
|
||||||
// remapper
|
|
||||||
implementation("net.fabricmc:tiny-remapper:0.8.7") {
|
|
||||||
exclude(group = "org.ow2.asm")
|
|
||||||
}
|
|
||||||
|
|
||||||
// mappings
|
|
||||||
implementation("net.fabricmc:mapping-io:0.3.0") {
|
|
||||||
exclude(group = "org.ow2.asm")
|
|
||||||
}
|
|
||||||
|
|
||||||
// jetbrains annotations
|
|
||||||
implementation("org.jetbrains:annotations-java5:23.0.0")
|
|
||||||
|
|
||||||
// binpatcher
|
|
||||||
implementation("net.minecraftforge:binarypatcher:1.1.1") {
|
|
||||||
exclude(mapOf("group" to "commons-io"))
|
|
||||||
}
|
|
||||||
implementation("commons-io:commons-io:2.12.0")
|
|
||||||
|
|
||||||
// pack200 provided by apache commons-compress
|
|
||||||
implementation("org.apache.commons:commons-compress:1.26.1")
|
|
||||||
|
|
||||||
// aw
|
|
||||||
implementation("net.fabricmc:access-widener:2.1.0")
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
plugins {
|
||||||
|
idea
|
||||||
|
`java-library`
|
||||||
|
id("io.freefair.lombok")
|
||||||
|
id("com.diffplug.spotless")
|
||||||
|
}
|
||||||
|
|
||||||
|
spotless {
|
||||||
|
java {
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
indentWithSpaces(4)
|
||||||
|
endWithNewline()
|
||||||
|
|
||||||
|
importOrder("", "javax|java", "\\#")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
tasks.processResources {
|
||||||
|
filteringCharset = "UTF-8"
|
||||||
|
|
||||||
|
filesMatching("fabric.mod.json") {
|
||||||
|
expand("version" to rootProject.version)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<JavaCompile> {
|
||||||
|
options.encoding = "UTF-8"
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
toolchain {
|
||||||
|
languageVersion.set(JavaLanguageVersion.of(21))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
import xyz.wagyourtail.unimined.api.minecraft.MinecraftConfig
|
||||||
|
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
||||||
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("dg-java-conventions")
|
||||||
|
id("xyz.wagyourtail.unimined")
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(project(":common"))
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<RemapJarTask> {
|
||||||
|
onlyIf { false }
|
||||||
|
}
|
||||||
+1
-11
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'java-library'
|
id 'dg-java-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -7,13 +7,3 @@ dependencies {
|
|||||||
implementation 'io.github.classgraph:classgraph:4.8.172'
|
implementation 'io.github.classgraph:classgraph:4.8.172'
|
||||||
implementation "net.lenni0451:Reflect:1.3.3"
|
implementation "net.lenni0451:Reflect:1.3.3"
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomLegacyFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomLegacyFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomLegacyFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomLegacyFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomLegacyFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomLegacyFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomLegacyFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomLegacyFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-26
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,33 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|||||||
+3
-4
@@ -7,11 +7,10 @@ import net.minecraft.enchantment.Enchantment;
|
|||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.registry.Registry;
|
import net.minecraft.registry.Registry;
|
||||||
import net.minecraft.registry.RegistryKeys;
|
import net.minecraft.registry.RegistryKeys;
|
||||||
import net.minecraft.registry.tag.TagKey;
|
|
||||||
import net.minecraft.registry.entry.RegistryEntryList;
|
|
||||||
import net.minecraft.util.Identifier;
|
|
||||||
import net.minecraft.registry.entry.RegistryEntry;
|
import net.minecraft.registry.entry.RegistryEntry;
|
||||||
|
import net.minecraft.registry.entry.RegistryEntryList;
|
||||||
|
import net.minecraft.registry.tag.TagKey;
|
||||||
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -8,13 +8,13 @@ import net.minecraft.block.Block;
|
|||||||
import net.minecraft.block.Blocks;
|
import net.minecraft.block.Blocks;
|
||||||
import net.minecraft.block.RedstoneWireBlock;
|
import net.minecraft.block.RedstoneWireBlock;
|
||||||
import net.minecraft.client.color.block.BlockColors;
|
import net.minecraft.client.color.block.BlockColors;
|
||||||
import net.minecraft.world.biome.FoliageColors;
|
|
||||||
import net.minecraft.registry.DynamicRegistryManager;
|
import net.minecraft.registry.DynamicRegistryManager;
|
||||||
import net.minecraft.registry.Registry;
|
import net.minecraft.registry.Registry;
|
||||||
import net.minecraft.registry.RegistryKeys;
|
import net.minecraft.registry.RegistryKeys;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.biome.Biome;
|
import net.minecraft.world.biome.Biome;
|
||||||
|
import net.minecraft.world.biome.FoliageColors;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
|
|||||||
+5
-26
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,33 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|||||||
+2
-3
@@ -7,12 +7,11 @@ import net.minecraft.enchantment.Enchantment;
|
|||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.registry.Registry;
|
import net.minecraft.registry.Registry;
|
||||||
import net.minecraft.registry.RegistryKeys;
|
import net.minecraft.registry.RegistryKeys;
|
||||||
|
import net.minecraft.registry.entry.RegistryEntry;
|
||||||
|
import net.minecraft.registry.entry.RegistryEntryList;
|
||||||
import net.minecraft.registry.tag.EnchantmentTags;
|
import net.minecraft.registry.tag.EnchantmentTags;
|
||||||
import net.minecraft.registry.tag.TagKey;
|
import net.minecraft.registry.tag.TagKey;
|
||||||
import net.minecraft.registry.entry.RegistryEntryList;
|
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
import net.minecraft.registry.entry.RegistryEntry;
|
|
||||||
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -8,13 +8,13 @@ import net.minecraft.block.Block;
|
|||||||
import net.minecraft.block.Blocks;
|
import net.minecraft.block.Blocks;
|
||||||
import net.minecraft.block.RedstoneWireBlock;
|
import net.minecraft.block.RedstoneWireBlock;
|
||||||
import net.minecraft.client.color.block.BlockColors;
|
import net.minecraft.client.color.block.BlockColors;
|
||||||
import net.minecraft.world.biome.FoliageColors;
|
|
||||||
import net.minecraft.registry.DynamicRegistryManager;
|
import net.minecraft.registry.DynamicRegistryManager;
|
||||||
import net.minecraft.registry.Registry;
|
import net.minecraft.registry.Registry;
|
||||||
import net.minecraft.registry.RegistryKeys;
|
import net.minecraft.registry.RegistryKeys;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.biome.Biome;
|
import net.minecraft.world.biome.Biome;
|
||||||
|
import net.minecraft.world.biome.FoliageColors;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomLegacyFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomLegacyFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomLegacyFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomLegacyFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomLegacyFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomLegacyFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+5
-32
@@ -1,8 +1,7 @@
|
|||||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
||||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'xyz.wagyourtail.unimined'
|
id 'dg-mc-conventions'
|
||||||
}
|
}
|
||||||
|
|
||||||
unimined.minecraft {
|
unimined.minecraft {
|
||||||
@@ -15,39 +14,13 @@ unimined.minecraft {
|
|||||||
devFallbackNamespace "intermediary"
|
devFallbackNamespace "intermediary"
|
||||||
}
|
}
|
||||||
|
|
||||||
runs.config("server") {
|
|
||||||
javaVersion = JavaVersion.VERSION_21
|
|
||||||
}
|
|
||||||
|
|
||||||
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
||||||
it.loader libs.versions.fabric.loader.get()
|
it.loader libs.versions.fabric.loader.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
runs.config("server") {
|
||||||
|
javaVersion = JavaVersion.VERSION_21
|
||||||
|
}
|
||||||
|
|
||||||
defaultRemapJar = true
|
defaultRemapJar = true
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(":common")
|
|
||||||
}
|
|
||||||
|
|
||||||
processResources {
|
|
||||||
filteringCharset "UTF-8"
|
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand "version": project.version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(RemapJarTask).configureEach {
|
|
||||||
onlyIf { false}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
|
||||||
it.options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
toolchain {
|
|
||||||
languageVersion.set(JavaLanguageVersion.of(21))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user