Adds some features for use within mixins
Takes the topmost value on the operand stack and passes it to a handler method, optionally also capturing the target method arguments, and replaces it with the handler method's return value.
A slightly weird injector that adds a constant to an enum. See EnumInject.md for an example.
A quick way of using asm to do whatever you want to do. If you don't know how to use it, you probably shouldn't.
build.gradle:
repositories {
maven {
name = "Jitpack"
url = "https://jitpack.io"
}
}
dependencies {
modImplementation annotationProcessor(include("com.github.devs-immortal:Divine-Intervention:${project.divine_intervention_version}"))
}
gradle.properties:
divine_intervention_version = 2.0.0
build.gradle.kts:
val divineInterventionVersion: String by properties
repositories {
maven {
name = "Jitpack"
url = uri("https://jitpack.io")
}
}
dependencies {
modImplementation(
group = "com.github.devs-immortal",
name = "Divine-Intervention",
version = divineInterventionVersion,
).also(::annotationProcessor).also(::include)
}
gradle.properties:
divineInterventionVersion = 2.0.0