From b887ef2bab275d5f669054810825cca5e02a29dd Mon Sep 17 00:00:00 2001 From: LambdAurora Date: Mon, 29 Jul 2024 23:08:28 +0200 Subject: [PATCH] Relicense to Lambda License and convert buildscript to Kotlin. --- HEADER | 2 +- LICENSE | 149 ++++++++- LICENSE.OLD | 27 ++ build.gradle | 273 ----------------- build.gradle.kts | 284 ++++++++++++++++++ gradle.properties | 11 - gradle/libs.versions.toml | 28 ++ .../lambdynlights/DynamicLightSource.java | 2 +- .../lambdynlights/DynamicLightsConfig.java | 2 +- .../lambdynlights/DynamicLightsMode.java | 2 +- .../lambdynlights/ExplosiveLightingMode.java | 2 +- .../lambdynlights/LambDynLights.java | 8 +- .../lambdynlights/LambDynLightsCompat.java | 2 +- .../LambDynLightsMixinPlugin.java | 2 +- .../lambdynlights/LambDynLightsModMenu.java | 2 +- .../accessor/DynamicLightHandlerHolder.java | 2 +- .../accessor/WorldRendererAccessor.java | 2 +- .../api/DynamicLightHandler.java | 2 +- .../api/DynamicLightHandlers.java | 2 +- .../api/DynamicLightsInitializer.java | 2 +- .../api/item/ItemLightSource.java | 2 +- .../api/item/ItemLightSources.java | 2 +- .../config/BooleanSettingEntry.java | 2 +- .../config/LightSourceSettingEntry.java | 2 +- .../lambdynlights/config/SettingEntry.java | 2 +- .../gui/DynamicLightsOptionsOption.java | 2 +- .../lambdynlights/gui/InnerBackground.java | 2 +- .../gui/LightSourceListWidget.java | 2 +- .../gui/RandomPrideFlagBackground.java | 2 +- .../lambdynlights/gui/SettingsScreen.java | 2 +- .../mixin/BlockEntityTypeMixin.java | 2 +- .../lambdynlights/mixin/ClientWorldMixin.java | 2 +- .../mixin/CommonWorldRendererMixin.java | 2 +- .../lambdynlights/mixin/DebugHudMixin.java | 2 +- .../mixin/EntityRendererMixin.java | 2 +- .../lambdynlights/mixin/EntityTypeMixin.java | 2 +- .../mixin/MinecraftClientMixin.java | 2 +- .../mixin/VideoOptionsScreenMixin.java | 2 +- .../lambdynlights/mixin/WorldMixin.java | 2 +- .../mixin/fabric/AoCalculatorMixin.java | 2 +- .../AbstractDecorationEntityMixin.java | 2 +- .../AbstractMinecartEntityMixin.java | 2 +- .../mixin/lightsource/BlockEntityMixin.java | 2 +- .../mixin/lightsource/EntityMixin.java | 2 +- .../ExplosiveProjectileEntityMixin.java | 2 +- .../mixin/lightsource/LivingEntityMixin.java | 2 +- .../mixin/lightsource/PlayerEntityMixin.java | 2 +- .../mixin/lightsource/TntEntityMixin.java | 2 +- .../mixin/ltr/LilTaterBlockEntityMixin.java | 2 +- .../mixin/ltr/LilTaterBlocksMixin.java | 2 +- .../sodium/ArrayLightDataCacheMixin.java | 2 +- .../mixin/sodium/FlatLightPipelineMixin.java | 2 +- .../mixin/sodium/LightDataAccessMixin.java | 2 +- .../util/LilTaterBlockEntityAccessor.java | 2 +- .../util/SodiumDynamicLightHandler.java | 2 +- 55 files changed, 525 insertions(+), 351 deletions(-) create mode 100644 LICENSE.OLD delete mode 100644 build.gradle create mode 100644 build.gradle.kts create mode 100644 gradle/libs.versions.toml diff --git a/HEADER b/HEADER index 007ea0d3..d339cf58 100644 --- a/HEADER +++ b/HEADER @@ -2,7 +2,7 @@ Copyright © ${CREATION_YEAR} LambdAurora This file is part of LambDynamicLights. -Licensed under the MIT license. For more information, +Licensed under the Lambda License. For more information, see the LICENSE file. #year_selection file diff --git a/LICENSE b/LICENSE index ece5eed8..59527093 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,140 @@ -MIT License +The Lambda License -Copyright © 2020 LambdAurora +Copyright (c) 2024 LambdAurora -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +# 0. Foreword + +The Lambda License is an open license meant to better protect the rights of +software authors. It does not adhere to the usual definition of "Free Open +Source Software" (FOSS), but rather we aim to strike a middle ground between +the freedom of consumers and the protection of the authors' work. + +We believe traditional FOSS licenses allow companies or other individuals to +exploit software authors freely by having their work shared in a way they +don't agree with or that is detrimental to their business. This license aims +to give control of artifacts back to the authors and support an open code +community, while still allowing source code to be easily modified and shared. + +In short, you may share or modify the source code as you wish, as long as the +work stays under this license, and if you have modified the code, you must: +(a) State your changes if you don't use an SVC like Git +(b) List the original authors (as listed in the copyright at the top of this +license) + +When sharing binaries, you must adhere to a few more rules. In particular, you +will need written approval from the original authors. If they don't answer you +after 60 days, they are considered to be implicitly agreeing. Please note that +you have to request in good faith, spam won't be accepted. You will also need +to make the source code available and document where to find it. + +If you are running a modified version of this software on your servers and +users can freely interact with it, you will need to make your source code +public the same way. + +The precise terms and conditions can be found below: + + +# 1. Definitions + +1.1. "Source Code": The Source Code is any digital files or tools that are +part of the work covered by this text and/or used in the creation of Binaries, +preferred for making modifications. This does not include any publicly +available tools or libraries. This may include textual or binary digital +files. + +1.2. "Binaries": Binaries correspond to any form of the work other than the +Source Code. + +1.3. "This License": This License corresponds to the full text of this +document. + +1.4. "Copyright Notice": The Copyright Notice corresponds to the second line +of This License, starting with "Copyright (c)". + +1.5. "Project Owner": The Project Owners are all physical persons or +legal entities mentioned in the Copyright Notice. They may be referred to by +an alias. + +1.6. "You": "You" corresponds to an individual or a legal entity exercising +rights under this License. For legal entities, "You" includes any entity that +controls, is controlled by, or is under common control with You. For purposes +of this definition, "control" means (a) the power, direct or indirect, to +cause the direction or management of such an entity, whether by contract or +otherwise, or (b) ownership of more than fifty percent (50%) of the +outstanding shares or beneficial ownership of such an entity. + + +# 2. Using the Source Code + +You may copy, modify, merge, publish, distribute, and/or sell copies of the +Source Code under the following conditions: + +2.1. The Source Code and any derivative work of the Source Code are licensed +under This License. + +2.2. You must explicitly state your changes, if any, in a prominent place. +2.2.1. Commit history as provided by source version control software programs +is considered to fulfill 2.2. + +2.3. If you modify the Source Code in any way, You must list the original +Project Owners in a prominent place. +2.3.1. Commit history as provided by source version control software programs +is NOT considered to fulfill 2.3. + +2.4. You may add your name to the Copyright Notice, but You must not remove +any name from the existing Copyright Notice. + + +# 3. Using Binaries + +You may share, publish, distribute, make derivative work, and/or sell copies +of Binaries, or license the right to do so, under the following conditions: + +3.1. The Binaries and any derivative work of the Binaries are licensed under +This License. + +3.2. You must make the Source Code used to create the Binaries publicly +available, free of charge. +3.2.1. You must clearly document in the Binaries, and respond to requests +asking how to obtain the aforementioned Source Code. + +3.3. You must obtain written approval from all Project Owners to use their +work as mentioned above. +3.3.1. This authorization is free of charge, royalty-free, global, +non-exclusive, revocable and non-transferable. +3.3.1.1. Revocation can be pronounced at any time (known as the "Revocation +Date") by any Project Owner, upon written notification to You. +3.3.1.2. If and when revocation is pronounced, You cannot make use of any +rights under Section 3 for any and all work made after the Revocation Date. +The revocation does not retroactively apply. +3.3.2. The Project Owner may impose any additional clause on their +authorization within the limits provided in 3.3.1. +3.3.2. If a Project Owner fails to reply within 60 calendar days upon +receiving a good-faith written request sent through their primary email, +an irrevocable authorization from that Project Owner is implicitly granted. +3.3.2.1. A written request made within 180 calendar days upon receiving a negative +answer is considered implicitly rejected and does not qualify for 3.3.2. + + +# 4. Remote network interaction + +If you offer users the ability to interact remotely through a computer network +with a Binary created from a modification of the Source Code, you must make +the modified Source Code publicly available, free of charge. You must also +clearly document and respond to requests asking how to obtain the +aforementioned Source Code. + + +# 5. Disclaimer THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, +OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +If case of a conflict between the Section 0 ("Foreword") and any other Section, the latter +Section shall prevail. \ No newline at end of file diff --git a/LICENSE.OLD b/LICENSE.OLD new file mode 100644 index 00000000..de1132af --- /dev/null +++ b/LICENSE.OLD @@ -0,0 +1,27 @@ +Commits before b964a12cc66ac2fe8ee6354c39cbae10b66ffa1e were licensed under MIT, full text below. + +Any further contribution will be made under the text inside the LICENSE file. + +--- + +MIT License + +Copyright © 2020 LambdAurora + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/build.gradle b/build.gradle deleted file mode 100644 index 5cb55929..00000000 --- a/build.gradle +++ /dev/null @@ -1,273 +0,0 @@ -plugins { - id "fabric-loom" version "1.7.+" - id "dev.yumi.gradle.licenser" version "1.1.+" - id "java-library" - id "maven-publish" - id "com.github.johnrengelman.shadow" version "8.1.1" - id "com.modrinth.minotaur" version "2.+" - id "net.darkhax.curseforgegradle" version "1.1.+" -} - -import com.modrinth.minotaur.dependencies.ModDependency -import net.darkhax.curseforgegradle.TaskPublishCurseForge - -group = project.maven_group -version = "${project.mod_version}+${project.minecraft_version}" -base.archivesName = project.archives_base_name - -// This field defines the Java version your mod target. -def targetJavaVersion = 17 - -if (!(System.getenv("CURSEFORGE_TOKEN") || System.getenv("MODRINTH_TOKEN") || System.getenv("LDL_MAVEN"))) { - version += "-local" -} -logger.lifecycle("Preparing version ${version}...") - -boolean isMCVersionNonRelease() { - return project.minecraft_version.matches('^\\d\\dw\\d\\d[a-z]$') - || project.minecraft_version.matches("\\d+\\.\\d+-(pre|rc)(\\d+)") -} - -String getMCVersionString() { - if (isMCVersionNonRelease()) { - return project.minecraft_version - } - def version = project.minecraft_version.split("\\.") - return version[0] + "." + version[1] -} - -String getVersionType() { - if (isMCVersionNonRelease() || version.contains("-alpha.")) { - return "alpha" - } else if (version.contains("-beta.")) { - return "beta" - } else { - return "release" - } -} - -String parseReadme() { - def excludeRegex = /(?m)(.|\n)*?/ - def linkRegex = /!\[([A-z_ ]+)]\((images\/[A-z.\/_]+)\)/ - - def readme = (String) file("README.md").text - readme = readme.replaceAll(excludeRegex, "") - readme = readme.replaceAll(linkRegex, "![\$1](https://raw.githubusercontent.com/LambdAurora/LambDynamicLights/1.19/\$2)") - return readme -} - -String fetchChangelog() { - def changelogText = file("CHANGELOG.md").text - def regexVersion = ((String) project.mod_version).replaceAll("\\.", /\\./).replaceAll("\\+", "\\+") - def changelogRegex = ~"###? ${regexVersion}\\n\\n(( *- .+\\n)+)" - def matcher = changelogText =~ changelogRegex - - if (matcher.find()) { - def changelogContent = matcher.group(1) - - def changelogLines = changelogText.split("\n") - def linkRefRegex = ~"^\\[([A-z\\d _\\-/+.]+)]: " - for (int i = changelogLines.length - 1; i > 0; i--) { - def line = changelogLines[i] - if ((line =~ linkRefRegex).find()) - changelogContent += "\n" + line - else break - } - return changelogContent - } else { - return null; - } -} - -repositories { - mavenLocal() - mavenCentral() - maven { - name "Terraformers" - url "https://maven.terraformersmc.com/releases/" - } - maven { - name "Gegy" - url "https://maven.gegy.dev" - } - maven { - name "grondag" - url "https://maven.dblsaiko.net/" - } - exclusiveContent { - forRepository { - maven { - name "Modrinth" - url "https://api.modrinth.com/maven" - } - } - filter { - includeGroup "maven.modrinth" - } - } -} - -configurations { - shadow - api.extendsFrom shadow -} - -loom { - accessWidenerPath = file("src/main/resources/lambdynlights.accesswidener") -} - -dependencies { - minecraft "com.mojang:minecraft:${project.minecraft_version}" - mappings "net.fabricmc:yarn:${project.minecraft_version}+build.${project.yarn_mappings}:v2" - modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" - - // Fabric API. This is technically optional, but you probably want it anyway. - modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}" - - modImplementation include("dev.lambdaurora:spruceui:${project.spruceui_version}") - modImplementation include("io.github.queerbric:pridelib:${project.pridelib_version}") - - modImplementation("com.terraformersmc:modmenu:${project.modmenu_version}") { - transitive = false - } - - modRuntimeOnly "maven.modrinth:sodium:${project.sodium_version}" - - shadow "com.electronwill.night-config:core:3.6.6" - shadow "com.electronwill.night-config:toml:3.6.6" -} - -java { - sourceCompatibility = JavaVersion.toVersion(targetJavaVersion) - targetCompatibility = JavaVersion.toVersion(targetJavaVersion) - - withSourcesJar() -} - -tasks.withType(JavaCompile).configureEach { - it.options.encoding = "UTF-8" - - it.options.release.set(targetJavaVersion) -} - -processResources { - inputs.property "version", project.version - - filesMatching("fabric.mod.json") { - expand "version": project.version - } -} - -jar { - from("LICENSE") { - rename { "${it}_${base.archivesName}" } - } -} - -license { - rule file("HEADER") -} - -shadowJar { - dependsOn jar - configurations = [project.configurations.shadow] - destinationDirectory.set(file("${project.layout.buildDirectory.get()}/devlibs")) - archiveClassifier.set("dev") - - relocate "com.electronwill.nightconfig", "dev.lambdaurora.lambdynlights.shadow.nightconfig" -} -remapJar.dependsOn(shadowJar) - -modrinth { - projectId = project.modrinth_id - versionName = "LambDynamicLights ${project.mod_version} (${getMCVersionString()})" - uploadFile = tasks.remapJar - loaders = ["fabric", "quilt"] - gameVersions = [project.minecraft_version] - versionType = isMCVersionNonRelease() ? "beta" : "release" - syncBodyFrom = parseReadme() - dependencies = [ - new ModDependency("P7dR8mSH", "required") - ] - - // Changelog fetching - def changelogContent = fetchChangelog() - - if (changelogContent) { - changelog = changelogContent - } else { - afterEvaluate { - tasks.modrinth.setEnabled(false) - } - } -} -tasks.modrinth.dependsOn(tasks.modrinthSyncBody) - -tasks.register("curseforge", TaskPublishCurseForge) { - setGroup("publishing") - - if (System.getenv("CURSEFORGE_TOKEN")) { - apiToken = System.getenv("CURSEFORGE_TOKEN") - } else { - setEnabled(false) - return - } - - // Changelog fetching - def changelogContent = fetchChangelog() - - if (changelogContent) { - changelogContent = "Changelog:\n\n${changelogContent}" - } else { - setEnabled(false) - return - } - - def mainFile = upload(project.curseforge_id, tasks.remapJar) - mainFile.releaseType = this.getVersionType() - mainFile.addGameVersion(project.minecraft_version) - mainFile.addModLoader("Fabric", "Quilt") - mainFile.addJavaVersion("Java 17", "Java 18") - - mainFile.displayName = "LambDynamicLights ${project.mod_version} (${project.minecraft_version})" - mainFile.addRequirement("fabric-api") - mainFile.addOptional("modmenu") - mainFile.addIncompatibility("optifabric") - - mainFile.changelogType = "markdown" - mainFile.changelog = changelogContent -} - -// configure the maven publication -publishing { - publications { - mavenJava(MavenPublication) { - from components.java - - pom { - name = "LambDynamicLights" - description = "Adds dynamic lights to the game." - } - } - } - - repositories { - mavenLocal() - maven { - name = "BuildDirLocal" - url = "${project.layout.buildDirectory.get()}/repo" - } - - def ldlMaven = System.getenv("LDL_MAVEN") - if (ldlMaven) { - maven { - name = "LambDynamicLightsMaven" - url = uri(ldlMaven) - credentials { - username = project.findProperty("gpr.user") ?: System.getenv("MAVEN_USERNAME") - password = project.findProperty("gpr.key") ?: System.getenv("MAVEN_PASSWORD") - } - } - } - } -} diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 00000000..1e67fbd2 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,284 @@ +import com.modrinth.minotaur.dependencies.ModDependency +import net.darkhax.curseforgegradle.TaskPublishCurseForge + +plugins { + id("fabric-loom").version("1.7.+") + id("dev.yumi.gradle.licenser").version("1.1.+") + `java-library` + `maven-publish` + id("com.github.johnrengelman.shadow").version("8.1.1") + id("com.modrinth.minotaur").version("2.+") + id("net.darkhax.curseforgegradle").version("1.1.+") +} + +group = project.property("maven_group") as String +base.archivesName.set(project.property("archives_base_name") as String) +val minecraftVersion = libs.versions.minecraft.get() +val modVersion = project.property("mod_version") as String +version = "${modVersion}+${minecraftVersion}" + +// This field defines the Java version your mod target. +val targetJavaVersion = 21 + +if (!(System.getenv("CURSEFORGE_TOKEN") != null || System.getenv("MODRINTH_TOKEN") != null || System.getenv("LDL_MAVEN") != null)) { + version = (version as String) + "-local" +} +logger.lifecycle("Preparing version ${version}...") + +fun isMCVersionNonRelease(): Boolean { + return minecraftVersion.matches(Regex("^\\d\\dw\\d\\d[a-z]$")) + || minecraftVersion.matches(Regex("\\d+\\.\\d+-(pre|rc)(\\d+)")) +} + +fun getMCVersionString(): String { + if (isMCVersionNonRelease()) { + return minecraftVersion + } + val version = minecraftVersion.split("\\.".toRegex()) + return version[0] + "." + version[1] +} + +fun getVersionType(): String { + return if (isMCVersionNonRelease() || "-alpha." in modVersion) { + "alpha" + } else if ("-beta." in modVersion) { + "beta" + } else { + "release" + } +} + +fun parseReadme(): String { + val excludeRegex = "(?m)(.|\n)*?" + val linkRegex = "!\\[([A-z_ ]+)]\\((images\\/[A-z.\\/_]+)\\)" + + var readme = file("README.md").readText() + readme = readme.replace(excludeRegex.toRegex(), "") + readme = readme.replace(linkRegex.toRegex(), "![\$1](https://raw.githubusercontent.com/LambdAurora/LambDynamicLights/1.19/\$2)") + return readme +} + +fun fetchChangelog(): String? { + val changelogText = file("CHANGELOG.md").readText() + val regexVersion = modVersion.replace("\\.".toRegex(), "\\.").replace("\\+".toRegex(), "\\+") + val changelogRegex = "###? ${regexVersion}\\n\\n(( *- .+\\n)+)".toRegex() + val matcher = changelogRegex.find(changelogText) + + if (matcher != null) { + var changelogContent = matcher.groupValues[1] + + val changelogLines = changelogText.split("\n") + val linkRefRegex = "^\\[([A-z\\d _\\-/+.]+)]: ".toRegex() + for (i in changelogLines.size - 1 downTo 0) { + val line = changelogLines[i] + if (line matches linkRefRegex) + changelogContent += "\n" + line + else break + } + return changelogContent + } else { + return null; + } +} + +configurations["api"].extendsFrom(configurations["shadow"]) + +repositories { + mavenLocal() + mavenCentral() + maven { + name = "Terraformers" + url = uri("https://maven.terraformersmc.com/releases/") + } + maven { + name = "Gegy" + url = uri("https://maven.gegy.dev") + } + maven { + name = "grondag" + url = uri("https://maven.dblsaiko.net/") + } + exclusiveContent { + forRepository { + maven { + name = "Modrinth" + url = uri("https://api.modrinth.com/maven") + } + } + filter { + includeGroup("maven.modrinth") + } + } +} + +loom { + accessWidenerPath = file("src/main/resources/lambdynlights.accesswidener") + runtimeOnlyLog4j = true +} + +dependencies { + minecraft(libs.minecraft) + mappings("net.fabricmc:yarn:${minecraftVersion}+build.${project.property("yarn_mappings")}:v2") + modImplementation(libs.fabric.loader) + + modImplementation(libs.fabric.api) + + modImplementation(libs.spruceui) + include(libs.spruceui) + modImplementation(libs.pridelib) + include(libs.pridelib) + + modImplementation(libs.modmenu) { + this.isTransitive = false + } + + modRuntimeOnly(libs.sodium) + + shadow(libs.nightconfig.core) + shadow(libs.nightconfig.toml) +} + +java { + sourceCompatibility = JavaVersion.toVersion(targetJavaVersion) + targetCompatibility = JavaVersion.toVersion(targetJavaVersion) + + withSourcesJar() +} + +tasks.withType().configureEach { + options.encoding = "UTF-8" + + options.release.set(targetJavaVersion) +} + +tasks.processResources { + inputs.property("version", project.version) + + filesMatching("fabric.mod.json") { + expand("version" to project.version) + } +} + +tasks.jar { + from("LICENSE") { + rename { "${it}_${base.archivesName.get()}" } + } +} + +license { + rule(file("HEADER")) +} + +tasks.shadowJar { + dependsOn(tasks.jar) + configurations = listOf(project.configurations["shadow"]) + destinationDirectory.set(file("${project.layout.buildDirectory.get()}/devlibs")) + archiveClassifier.set("dev") + + relocate("com.electronwill.nightconfig", "dev.lambdaurora.lambdynlights.shadow.nightconfig") +} + +tasks.remapJar { + dependsOn(tasks.shadowJar) +} + +modrinth { + projectId = project.property("modrinth_id") as String + versionName = "LambDynamicLights $modVersion (${minecraftVersion})" + uploadFile.set(tasks.remapJar.get()) + loaders.set(listOf("fabric", "quilt")) + gameVersions.set(listOf(minecraftVersion)) + versionType.set(if (isMCVersionNonRelease()) "beta" else "release") + syncBodyFrom.set(parseReadme()) + dependencies.set( + listOf( + ModDependency("P7dR8mSH", "required") + ) + ) + + // Changelog fetching + val changelogContent = fetchChangelog() + + if (changelogContent != null) { + changelog.set(changelogContent) + } else { + afterEvaluate { + tasks.modrinth.get().setEnabled(false) + } + } +} + +tasks.modrinth { + dependsOn(tasks.modrinthSyncBody) +} + +tasks.register("curseforge", TaskPublishCurseForge::class) { + this.setGroup("publishing") + + val token = System.getenv("CURSEFORGE_TOKEN") + if (token != null) { + this.apiToken = token + } else { + this.isEnabled = false + return@register + } + + // Changelog fetching + var changelogContent = fetchChangelog() + + if (changelogContent != null) { + changelogContent = "Changelog:\n\n${changelogContent}" + } else { + this.isEnabled = false + return@register + } + + val mainFile = upload(project.property("curseforge_id"), tasks.remapJar.get()) + mainFile.releaseType = getVersionType() + mainFile.addGameVersion(minecraftVersion) + mainFile.addModLoader("Fabric", "Quilt") + mainFile.addJavaVersion("Java 21", "Java 22") + mainFile.addEnvironment("Client") + + mainFile.displayName = "LambDynamicLights $modVersion ($minecraftVersion)" + mainFile.addRequirement("fabric-api") + mainFile.addOptional("modmenu") + mainFile.addIncompatibility("optifabric") + + mainFile.changelogType = "markdown" + mainFile.changelog = changelogContent +} + +// Configure the maven publication. +publishing { + publications { + create("mavenJava", MavenPublication::class) { + from(components["java"]) + + pom { + name.set("LambDynamicLights") + description.set("Adds dynamic lights to Minecraft.") + } + } + } + + repositories { + mavenLocal() + maven { + name = "BuildDirLocal" + url = uri("${project.layout.buildDirectory.get()}/repo") + } + + val ldlMaven = System.getenv("LDL_MAVEN") + if (ldlMaven != null) { + maven { + name = "LambDynamicLightsMaven" + url = uri(ldlMaven) + credentials { + username = (project.findProperty("gpr.user") as? String) ?: System.getenv("MAVEN_USERNAME") + password = (project.findProperty("gpr.key") as? String) ?: System.getenv("MAVEN_PASSWORD") + } + } + } + } +} diff --git a/gradle.properties b/gradle.properties index e3df32df..9004edaf 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,11 +3,7 @@ org.gradle.jvmargs=-Xmx2G # Fabric Properties # check these on https://fabricmc.net/use -minecraft_version=1.21 yarn_mappings=2 -loader_version=0.15.11 -# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api -fabric_api_version=0.100.4+1.21 # Mod Properties mod_version = 2.3.4 @@ -15,10 +11,3 @@ maven_group = dev.lambdaurora archives_base_name = lambdynamiclights modrinth_id=yBW8D80W curseforge_id=393442 - -# Dependencies -# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api -spruceui_version=5.1.0+1.21 -pridelib_version=1.2.1+1.21 -modmenu_version=11.0.1 -sodium_version=mc1.21-0.5.9 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 00000000..4e580cf8 --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,28 @@ +[versions] +minecraft = "1.21" +fabric-loader = "0.15.11" +fabric-api = "0.100.4+1.21" + +# Dependencies +spruceui = "5.1.0+1.21" +pridelib = "1.2.1+1.21" +modmenu = "11.0.1" +sodium = "mc1.21-0.5.9" + +# Configuration +nightconfig = "3.6.6" + +[libraries] +minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" } +fabric-loader = { module = "net.fabricmc:fabric-loader", version.ref = "fabric-loader" } +fabric-api = { module = "net.fabricmc.fabric-api:fabric-api", version.ref = "fabric-api" } + +# Dependencies +spruceui = { module = "dev.lambdaurora:spruceui", version.ref = "spruceui" } +pridelib = { module = "io.github.queerbric:pridelib", version.ref = "pridelib" } +modmenu = { module = "com.terraformersmc:modmenu", version.ref = "modmenu" } +sodium = { module = "maven.modrinth:sodium", version.ref = "sodium" } + +# Configuration +nightconfig-core = { module = "com.electronwill.night-config:core", version.ref = "nightconfig" } +nightconfig-toml = { module = "com.electronwill.night-config:toml", version.ref = "nightconfig" } diff --git a/src/main/java/dev/lambdaurora/lambdynlights/DynamicLightSource.java b/src/main/java/dev/lambdaurora/lambdynlights/DynamicLightSource.java index 22ba8d2e..6f2cc707 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/DynamicLightSource.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/DynamicLightSource.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/DynamicLightsConfig.java b/src/main/java/dev/lambdaurora/lambdynlights/DynamicLightsConfig.java index 130436ba..7a9bc1c4 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/DynamicLightsConfig.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/DynamicLightsConfig.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/DynamicLightsMode.java b/src/main/java/dev/lambdaurora/lambdynlights/DynamicLightsMode.java index 2deba846..533f8db2 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/DynamicLightsMode.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/DynamicLightsMode.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/ExplosiveLightingMode.java b/src/main/java/dev/lambdaurora/lambdynlights/ExplosiveLightingMode.java index 6c517518..aba8220b 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/ExplosiveLightingMode.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/ExplosiveLightingMode.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/LambDynLights.java b/src/main/java/dev/lambdaurora/lambdynlights/LambDynLights.java index 2fd6216a..0203f1be 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/LambDynLights.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/LambDynLights.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ @@ -35,10 +35,10 @@ import net.minecraft.util.Identifier; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.MathHelper; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import java.util.HashSet; import java.util.Set; @@ -57,7 +57,7 @@ public class LambDynLights implements ClientModInitializer { private static final double MAX_RADIUS = 7.75; private static final double MAX_RADIUS_SQUARED = MAX_RADIUS * MAX_RADIUS; private static LambDynLights INSTANCE; - public final Logger logger = LogManager.getLogger(NAMESPACE); + public final Logger logger = LoggerFactory.getLogger(NAMESPACE); public final DynamicLightsConfig config = new DynamicLightsConfig(this); private final Set dynamicLightSources = new HashSet<>(); private final ReentrantReadWriteLock lightSourcesLock = new ReentrantReadWriteLock(); diff --git a/src/main/java/dev/lambdaurora/lambdynlights/LambDynLightsCompat.java b/src/main/java/dev/lambdaurora/lambdynlights/LambDynLightsCompat.java index 7a2801fd..6fddca5c 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/LambDynLightsCompat.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/LambDynLightsCompat.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/LambDynLightsMixinPlugin.java b/src/main/java/dev/lambdaurora/lambdynlights/LambDynLightsMixinPlugin.java index c4aba4a2..b5d095be 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/LambDynLightsMixinPlugin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/LambDynLightsMixinPlugin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/LambDynLightsModMenu.java b/src/main/java/dev/lambdaurora/lambdynlights/LambDynLightsModMenu.java index d9b8101e..2e645745 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/LambDynLightsModMenu.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/LambDynLightsModMenu.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/accessor/DynamicLightHandlerHolder.java b/src/main/java/dev/lambdaurora/lambdynlights/accessor/DynamicLightHandlerHolder.java index 94593774..295ca65e 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/accessor/DynamicLightHandlerHolder.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/accessor/DynamicLightHandlerHolder.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/accessor/WorldRendererAccessor.java b/src/main/java/dev/lambdaurora/lambdynlights/accessor/WorldRendererAccessor.java index c1386cb1..6949db02 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/accessor/WorldRendererAccessor.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/accessor/WorldRendererAccessor.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/api/DynamicLightHandler.java b/src/main/java/dev/lambdaurora/lambdynlights/api/DynamicLightHandler.java index 2562415a..4813b754 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/api/DynamicLightHandler.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/api/DynamicLightHandler.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/api/DynamicLightHandlers.java b/src/main/java/dev/lambdaurora/lambdynlights/api/DynamicLightHandlers.java index 676ff057..7e9eadb4 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/api/DynamicLightHandlers.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/api/DynamicLightHandlers.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/api/DynamicLightsInitializer.java b/src/main/java/dev/lambdaurora/lambdynlights/api/DynamicLightsInitializer.java index d62badee..ad19ee34 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/api/DynamicLightsInitializer.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/api/DynamicLightsInitializer.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/api/item/ItemLightSource.java b/src/main/java/dev/lambdaurora/lambdynlights/api/item/ItemLightSource.java index 939002f9..5fc42165 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/api/item/ItemLightSource.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/api/item/ItemLightSource.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/api/item/ItemLightSources.java b/src/main/java/dev/lambdaurora/lambdynlights/api/item/ItemLightSources.java index d1281c7e..8206b5e6 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/api/item/ItemLightSources.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/api/item/ItemLightSources.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/config/BooleanSettingEntry.java b/src/main/java/dev/lambdaurora/lambdynlights/config/BooleanSettingEntry.java index 1ef8a1dd..9403cc9c 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/config/BooleanSettingEntry.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/config/BooleanSettingEntry.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/config/LightSourceSettingEntry.java b/src/main/java/dev/lambdaurora/lambdynlights/config/LightSourceSettingEntry.java index 1a0e9c36..e33bb471 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/config/LightSourceSettingEntry.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/config/LightSourceSettingEntry.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/config/SettingEntry.java b/src/main/java/dev/lambdaurora/lambdynlights/config/SettingEntry.java index be932e91..cc179cf1 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/config/SettingEntry.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/config/SettingEntry.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/gui/DynamicLightsOptionsOption.java b/src/main/java/dev/lambdaurora/lambdynlights/gui/DynamicLightsOptionsOption.java index a09f3f68..0d4bd17a 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/gui/DynamicLightsOptionsOption.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/gui/DynamicLightsOptionsOption.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/gui/InnerBackground.java b/src/main/java/dev/lambdaurora/lambdynlights/gui/InnerBackground.java index 8a73020c..0eb19225 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/gui/InnerBackground.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/gui/InnerBackground.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/gui/LightSourceListWidget.java b/src/main/java/dev/lambdaurora/lambdynlights/gui/LightSourceListWidget.java index 0f0df52f..26f72a1f 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/gui/LightSourceListWidget.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/gui/LightSourceListWidget.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/gui/RandomPrideFlagBackground.java b/src/main/java/dev/lambdaurora/lambdynlights/gui/RandomPrideFlagBackground.java index d539471b..23a5608b 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/gui/RandomPrideFlagBackground.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/gui/RandomPrideFlagBackground.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/gui/SettingsScreen.java b/src/main/java/dev/lambdaurora/lambdynlights/gui/SettingsScreen.java index 9356a5d0..d2cc14e2 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/gui/SettingsScreen.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/gui/SettingsScreen.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/BlockEntityTypeMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/BlockEntityTypeMixin.java index fd8af46c..f84db55f 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/BlockEntityTypeMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/BlockEntityTypeMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/ClientWorldMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/ClientWorldMixin.java index 26f27597..b7f233d6 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/ClientWorldMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/ClientWorldMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/CommonWorldRendererMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/CommonWorldRendererMixin.java index 5ad669c7..6c3b1653 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/CommonWorldRendererMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/CommonWorldRendererMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/DebugHudMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/DebugHudMixin.java index 997a2e11..baab5eec 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/DebugHudMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/DebugHudMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/EntityRendererMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/EntityRendererMixin.java index 82e5690e..22a46a59 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/EntityRendererMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/EntityRendererMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/EntityTypeMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/EntityTypeMixin.java index ac0d7f85..c2bd8d71 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/EntityTypeMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/EntityTypeMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/MinecraftClientMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/MinecraftClientMixin.java index 556d6b62..bd6e38be 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/MinecraftClientMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/MinecraftClientMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/VideoOptionsScreenMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/VideoOptionsScreenMixin.java index 280f9378..faf96d5d 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/VideoOptionsScreenMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/VideoOptionsScreenMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/WorldMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/WorldMixin.java index eb63404d..4e2a4c95 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/WorldMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/WorldMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/fabric/AoCalculatorMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/fabric/AoCalculatorMixin.java index d8428d16..5347cea3 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/fabric/AoCalculatorMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/fabric/AoCalculatorMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/AbstractDecorationEntityMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/AbstractDecorationEntityMixin.java index b87eb15f..c87d5849 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/AbstractDecorationEntityMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/AbstractDecorationEntityMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/AbstractMinecartEntityMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/AbstractMinecartEntityMixin.java index 6e043bad..7bae1865 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/AbstractMinecartEntityMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/AbstractMinecartEntityMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/BlockEntityMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/BlockEntityMixin.java index 67ae6373..e1b1e476 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/BlockEntityMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/BlockEntityMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/EntityMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/EntityMixin.java index 8b4ad172..792dc3de 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/EntityMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/EntityMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/ExplosiveProjectileEntityMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/ExplosiveProjectileEntityMixin.java index b97fa312..c8f2410d 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/ExplosiveProjectileEntityMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/ExplosiveProjectileEntityMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/LivingEntityMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/LivingEntityMixin.java index b6bac72c..39a553e5 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/LivingEntityMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/LivingEntityMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/PlayerEntityMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/PlayerEntityMixin.java index f140ad91..66b8d051 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/PlayerEntityMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/PlayerEntityMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/TntEntityMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/TntEntityMixin.java index 2e58c515..58b0adbe 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/TntEntityMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/TntEntityMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/ltr/LilTaterBlockEntityMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/ltr/LilTaterBlockEntityMixin.java index 4b7ad938..7ab687ff 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/ltr/LilTaterBlockEntityMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/ltr/LilTaterBlockEntityMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/ltr/LilTaterBlocksMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/ltr/LilTaterBlocksMixin.java index 52c5c004..f16dca00 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/ltr/LilTaterBlocksMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/ltr/LilTaterBlocksMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/sodium/ArrayLightDataCacheMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/sodium/ArrayLightDataCacheMixin.java index cb4d1dd8..ec46190a 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/sodium/ArrayLightDataCacheMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/sodium/ArrayLightDataCacheMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/sodium/FlatLightPipelineMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/sodium/FlatLightPipelineMixin.java index c71002a2..537d49cc 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/sodium/FlatLightPipelineMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/sodium/FlatLightPipelineMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/sodium/LightDataAccessMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/sodium/LightDataAccessMixin.java index c84248a9..10f138c8 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/sodium/LightDataAccessMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/sodium/LightDataAccessMixin.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/util/LilTaterBlockEntityAccessor.java b/src/main/java/dev/lambdaurora/lambdynlights/util/LilTaterBlockEntityAccessor.java index ded21504..32e3c67c 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/util/LilTaterBlockEntityAccessor.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/util/LilTaterBlockEntityAccessor.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */ diff --git a/src/main/java/dev/lambdaurora/lambdynlights/util/SodiumDynamicLightHandler.java b/src/main/java/dev/lambdaurora/lambdynlights/util/SodiumDynamicLightHandler.java index 29d6f1de..9b49a66f 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/util/SodiumDynamicLightHandler.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/util/SodiumDynamicLightHandler.java @@ -3,7 +3,7 @@ * * This file is part of LambDynamicLights. * - * Licensed under the MIT license. For more information, + * Licensed under the Lambda License. For more information, * see the LICENSE file. */