From 1c461bb7efeace567b617c0c580251bb56e7efc9 Mon Sep 17 00:00:00 2001 From: ZeroZipp Date: Thu, 27 Aug 2026 12:08:57 +0200 Subject: [PATCH] formatting --- .gitignore | 2 +- build.gradle.kts | 2 +- gradle.properties | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- gradlew | 2 +- gradlew.bat | 2 +- license.md | 2 +- readme.md | 2 +- settings.gradle.kts | 2 +- src/main/kotlin/dev/zerozipp/agent/Client.kt | 2 +- src/main/kotlin/dev/zerozipp/agent/Module.kt | 2 +- src/main/kotlin/dev/zerozipp/injector/Main.kt | 2 +- src/main/kotlin/dev/zerozipp/loader/Agent.kt | 2 +- src/main/kotlin/dev/zerozipp/loader/Inject.kt | 2 +- src/main/kotlin/dev/zerozipp/loader/Knot.kt | 2 +- src/main/kotlin/dev/zerozipp/loader/event/Event.kt | 2 +- src/main/kotlin/dev/zerozipp/loader/event/State.kt | 2 +- src/main/kotlin/dev/zerozipp/loader/inject/Gui.kt | 2 +- src/main/kotlin/dev/zerozipp/loader/inject/Render.kt | 2 +- src/main/kotlin/dev/zerozipp/loader/inject/Tick.kt | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index 366a85d..e75a3ec 100644 --- a/.gitignore +++ b/.gitignore @@ -42,4 +42,4 @@ bin/ .vscode/ # Mac OS -.DS_Store \ No newline at end of file +.DS_Store diff --git a/build.gradle.kts b/build.gradle.kts index 62811c3..bdb9f4e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -62,4 +62,4 @@ publishing.repositories { repositories { mavenCentral() mavenLocal() -} \ No newline at end of file +} diff --git a/gradle.properties b/gradle.properties index 5aadc7d..dabf60e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ kotlin.code.style=official -bytebuddy.version=1.18.11 \ No newline at end of file +bytebuddy.version=1.18.11 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index e4bb3ca..a510f0c 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionHash=bbaeb2fef8710818cf0e261201dab964c572f92b942812df0c3620d62a529a0 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists \ No newline at end of file +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index a58591e..1b6c787 100755 --- a/gradlew +++ b/gradlew @@ -231,4 +231,4 @@ eval "set -- $( tr '\n' ' ' )" '"$@"' -exec "$JAVACMD" "$@" \ No newline at end of file +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat index 477c896..107acd3 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -86,4 +86,4 @@ exit /b 1 :mainEnd if "%OS%"=="Windows_NT" endlocal -:omega \ No newline at end of file +:omega diff --git a/license.md b/license.md index 50317ec..681e42f 100644 --- a/license.md +++ b/license.md @@ -2,4 +2,4 @@ Copyright © 2026 Jarne Götz -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. \ No newline at end of file +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. diff --git a/readme.md b/readme.md index 7d7ce7a..7e7b42f 100644 --- a/readme.md +++ b/readme.md @@ -1,2 +1,2 @@ # Minecraft Mod Loader -Bare bones Minecraft mod loader that uses a java agent to inject code at runtime and allows for hot swapping of mods by using a custom class loader \ No newline at end of file +Bare bones Minecraft mod loader that uses a java agent to inject code at runtime and allows for hot swapping of mods by using a custom class loader diff --git a/settings.gradle.kts b/settings.gradle.kts index a16a0e8..f3cf065 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1 +1 @@ -rootProject.name = "Agent" \ No newline at end of file +rootProject.name = "Agent" diff --git a/src/main/kotlin/dev/zerozipp/agent/Client.kt b/src/main/kotlin/dev/zerozipp/agent/Client.kt index 4f6105b..58ba979 100644 --- a/src/main/kotlin/dev/zerozipp/agent/Client.kt +++ b/src/main/kotlin/dev/zerozipp/agent/Client.kt @@ -20,4 +20,4 @@ import java.io.File fun event(event: Event) = mods.forEach { module -> module.event(this, event) } -} \ No newline at end of file +} diff --git a/src/main/kotlin/dev/zerozipp/agent/Module.kt b/src/main/kotlin/dev/zerozipp/agent/Module.kt index dbfd968..28ffa72 100644 --- a/src/main/kotlin/dev/zerozipp/agent/Module.kt +++ b/src/main/kotlin/dev/zerozipp/agent/Module.kt @@ -21,4 +21,4 @@ class Module(jar: File, parent: ClassLoader) { val (c, e) = Client::class.java to Event::class.java instance?.javaClass?.getDeclaredMethod("event", c, e) }.getOrNull()?.invoke(instance, client, event) -} \ No newline at end of file +} diff --git a/src/main/kotlin/dev/zerozipp/injector/Main.kt b/src/main/kotlin/dev/zerozipp/injector/Main.kt index 32e07e4..f1fd216 100644 --- a/src/main/kotlin/dev/zerozipp/injector/Main.kt +++ b/src/main/kotlin/dev/zerozipp/injector/Main.kt @@ -22,4 +22,4 @@ fun main() { it.loadAgent(jar.absolutePath) it.detach() } -} \ No newline at end of file +} diff --git a/src/main/kotlin/dev/zerozipp/loader/Agent.kt b/src/main/kotlin/dev/zerozipp/loader/Agent.kt index 6a27b56..8e822d2 100644 --- a/src/main/kotlin/dev/zerozipp/loader/Agent.kt +++ b/src/main/kotlin/dev/zerozipp/loader/Agent.kt @@ -42,4 +42,4 @@ import java.io.File for(base in injections) builder = builder.inject(base.java) builder.installOn(inst) } -} \ No newline at end of file +} diff --git a/src/main/kotlin/dev/zerozipp/loader/Inject.kt b/src/main/kotlin/dev/zerozipp/loader/Inject.kt index 50facd9..30c4b2d 100644 --- a/src/main/kotlin/dev/zerozipp/loader/Inject.kt +++ b/src/main/kotlin/dev/zerozipp/loader/Inject.kt @@ -7,4 +7,4 @@ annotation class Inject( val target: String, val method: String, val desc: String -) \ No newline at end of file +) diff --git a/src/main/kotlin/dev/zerozipp/loader/Knot.kt b/src/main/kotlin/dev/zerozipp/loader/Knot.kt index cdfaee7..5f1c2fc 100644 --- a/src/main/kotlin/dev/zerozipp/loader/Knot.kt +++ b/src/main/kotlin/dev/zerozipp/loader/Knot.kt @@ -40,4 +40,4 @@ class Knot(private val jar: Path) : ClassFileTransformer { runCatching { expose(jar) } registry.clear() } -} \ No newline at end of file +} diff --git a/src/main/kotlin/dev/zerozipp/loader/event/Event.kt b/src/main/kotlin/dev/zerozipp/loader/event/Event.kt index d195bb0..6fecb32 100644 --- a/src/main/kotlin/dev/zerozipp/loader/event/Event.kt +++ b/src/main/kotlin/dev/zerozipp/loader/event/Event.kt @@ -3,4 +3,4 @@ package dev.zerozipp.loader.event data class Event( val target: String, val state: State -) \ No newline at end of file +) diff --git a/src/main/kotlin/dev/zerozipp/loader/event/State.kt b/src/main/kotlin/dev/zerozipp/loader/event/State.kt index 894aaf5..ac4c7e8 100644 --- a/src/main/kotlin/dev/zerozipp/loader/event/State.kt +++ b/src/main/kotlin/dev/zerozipp/loader/event/State.kt @@ -2,4 +2,4 @@ package dev.zerozipp.loader.event enum class State { ENTER, EXIT -} \ No newline at end of file +} diff --git a/src/main/kotlin/dev/zerozipp/loader/inject/Gui.kt b/src/main/kotlin/dev/zerozipp/loader/inject/Gui.kt index a9a2c4a..a5f9128 100644 --- a/src/main/kotlin/dev/zerozipp/loader/inject/Gui.kt +++ b/src/main/kotlin/dev/zerozipp/loader/inject/Gui.kt @@ -13,4 +13,4 @@ import net.bytebuddy.asm.Advice.* @OnMethodExit @JvmStatic fun exit() = client.event(exit) @JvmField val enter = Event("gui", ENTER) @JvmField val exit = Event("gui", EXIT) -} \ No newline at end of file +} diff --git a/src/main/kotlin/dev/zerozipp/loader/inject/Render.kt b/src/main/kotlin/dev/zerozipp/loader/inject/Render.kt index 40c03b9..ee2769d 100644 --- a/src/main/kotlin/dev/zerozipp/loader/inject/Render.kt +++ b/src/main/kotlin/dev/zerozipp/loader/inject/Render.kt @@ -13,4 +13,4 @@ import net.bytebuddy.asm.Advice.* @OnMethodExit @JvmStatic fun exit() = client.event(exit) @JvmField val enter = Event("render", ENTER) @JvmField val exit = Event("render", EXIT) -} \ No newline at end of file +} diff --git a/src/main/kotlin/dev/zerozipp/loader/inject/Tick.kt b/src/main/kotlin/dev/zerozipp/loader/inject/Tick.kt index cdbc5b0..d09989b 100644 --- a/src/main/kotlin/dev/zerozipp/loader/inject/Tick.kt +++ b/src/main/kotlin/dev/zerozipp/loader/inject/Tick.kt @@ -13,4 +13,4 @@ import net.bytebuddy.asm.Advice.* @OnMethodExit @JvmStatic fun exit() = client.event(exit) @JvmField val enter = Event("tick", ENTER) @JvmField val exit = Event("tick", EXIT) -} \ No newline at end of file +}