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/
# Mac OS
.DS_Store
.DS_Store
+1 -1
View File
@@ -62,4 +62,4 @@ publishing.repositories {
repositories {
mavenCentral()
mavenLocal()
}
}
+1 -1
View File
@@ -1,2 +1,2 @@
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
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists
Vendored
+1 -1
View File
@@ -231,4 +231,4 @@ eval "set -- $(
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"
exec "$JAVACMD" "$@"
Vendored
+1 -1
View File
@@ -86,4 +86,4 @@ exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:omega
+1 -1
View File
@@ -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.
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
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 {
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
instance?.javaClass?.getDeclaredMethod("event", c, e)
}.getOrNull()?.invoke(instance, client, event)
}
}
@@ -22,4 +22,4 @@ fun main() {
it.loadAgent(jar.absolutePath)
it.detach()
}
}
}
+1 -1
View File
@@ -42,4 +42,4 @@ import java.io.File
for(base in injections) builder = builder.inject(base.java)
builder.installOn(inst)
}
}
}
@@ -7,4 +7,4 @@ annotation class Inject(
val target: String,
val method: String,
val desc: String
)
)
+1 -1
View File
@@ -40,4 +40,4 @@ class Knot(private val jar: Path) : ClassFileTransformer {
runCatching { expose(jar) }
registry.clear()
}
}
}
@@ -3,4 +3,4 @@ package dev.zerozipp.loader.event
data class Event(
val target: String,
val state: State
)
)
@@ -2,4 +2,4 @@ package dev.zerozipp.loader.event
enum class State {
ENTER, EXIT
}
}
@@ -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)
}
}
@@ -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)
}
}
@@ -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)
}
}