formatting

This commit is contained in:
2026-08-27 12:08:57 +02:00
parent 062fd88554
commit 1c461bb7ef
20 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -42,4 +42,4 @@ bin/
.vscode/ .vscode/
# Mac OS # Mac OS
.DS_Store .DS_Store
+1 -1
View File
@@ -62,4 +62,4 @@ publishing.repositories {
repositories { repositories {
mavenCentral() mavenCentral()
mavenLocal() mavenLocal()
} }
+1 -1
View File
@@ -1,2 +1,2 @@
kotlin.code.style=official kotlin.code.style=official
bytebuddy.version=1.18.11 bytebuddy.version=1.18.11
+1 -1
View File
@@ -3,4 +3,4 @@ distributionHash=bbaeb2fef8710818cf0e261201dab964c572f92b942812df0c3620d62a529a0
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
Vendored
+1 -1
View File
@@ -231,4 +231,4 @@ eval "set -- $(
tr '\n' ' ' tr '\n' ' '
)" '"$@"' )" '"$@"'
exec "$JAVACMD" "$@" exec "$JAVACMD" "$@"
Vendored
+1 -1
View File
@@ -86,4 +86,4 @@ exit /b 1
:mainEnd :mainEnd
if "%OS%"=="Windows_NT" endlocal if "%OS%"=="Windows_NT" endlocal
:omega :omega
+1 -1
View File
@@ -2,4 +2,4 @@
Copyright © 2026 Jarne Götz 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. 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.
+1 -1
View File
@@ -1,2 +1,2 @@
# Minecraft Mod Loader # 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 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
+1 -1
View File
@@ -1 +1 @@
rootProject.name = "Agent" rootProject.name = "Agent"
+1 -1
View File
@@ -20,4 +20,4 @@ import java.io.File
fun event(event: Event) = mods.forEach { fun event(event: Event) = mods.forEach {
module -> module.event(this, event) module -> module.event(this, event)
} }
} }
+1 -1
View File
@@ -21,4 +21,4 @@ class Module(jar: File, parent: ClassLoader) {
val (c, e) = Client::class.java to Event::class.java val (c, e) = Client::class.java to Event::class.java
instance?.javaClass?.getDeclaredMethod("event", c, e) instance?.javaClass?.getDeclaredMethod("event", c, e)
}.getOrNull()?.invoke(instance, client, event) }.getOrNull()?.invoke(instance, client, event)
} }
@@ -22,4 +22,4 @@ fun main() {
it.loadAgent(jar.absolutePath) it.loadAgent(jar.absolutePath)
it.detach() it.detach()
} }
} }
+1 -1
View File
@@ -42,4 +42,4 @@ import java.io.File
for(base in injections) builder = builder.inject(base.java) for(base in injections) builder = builder.inject(base.java)
builder.installOn(inst) builder.installOn(inst)
} }
} }
@@ -7,4 +7,4 @@ annotation class Inject(
val target: String, val target: String,
val method: String, val method: String,
val desc: String val desc: String
) )
+1 -1
View File
@@ -40,4 +40,4 @@ class Knot(private val jar: Path) : ClassFileTransformer {
runCatching { expose(jar) } runCatching { expose(jar) }
registry.clear() registry.clear()
} }
} }
@@ -3,4 +3,4 @@ package dev.zerozipp.loader.event
data class Event( data class Event(
val target: String, val target: String,
val state: State val state: State
) )
@@ -2,4 +2,4 @@ package dev.zerozipp.loader.event
enum class State { enum class State {
ENTER, EXIT ENTER, EXIT
} }
@@ -13,4 +13,4 @@ import net.bytebuddy.asm.Advice.*
@OnMethodExit @JvmStatic fun exit() = client.event(exit) @OnMethodExit @JvmStatic fun exit() = client.event(exit)
@JvmField val enter = Event("gui", ENTER) @JvmField val enter = Event("gui", ENTER)
@JvmField val exit = Event("gui", EXIT) @JvmField val exit = Event("gui", EXIT)
} }
@@ -13,4 +13,4 @@ import net.bytebuddy.asm.Advice.*
@OnMethodExit @JvmStatic fun exit() = client.event(exit) @OnMethodExit @JvmStatic fun exit() = client.event(exit)
@JvmField val enter = Event("render", ENTER) @JvmField val enter = Event("render", ENTER)
@JvmField val exit = Event("render", EXIT) @JvmField val exit = Event("render", EXIT)
} }
@@ -13,4 +13,4 @@ import net.bytebuddy.asm.Advice.*
@OnMethodExit @JvmStatic fun exit() = client.event(exit) @OnMethodExit @JvmStatic fun exit() = client.event(exit)
@JvmField val enter = Event("tick", ENTER) @JvmField val enter = Event("tick", ENTER)
@JvmField val exit = Event("tick", EXIT) @JvmField val exit = Event("tick", EXIT)
} }