Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devs-immortal/divine-intervention
Some mixin things
https://github.com/devs-immortal/divine-intervention
Last synced: 30 days ago
JSON representation
Some mixin things
- Host: GitHub
- URL: https://github.com/devs-immortal/divine-intervention
- Owner: devs-immortal
- License: cc0-1.0
- Created: 2022-02-06T06:20:34.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-23T06:49:01.000Z (over 2 years ago)
- Last Synced: 2023-08-14T07:27:43.392Z (over 1 year ago)
- Language: Java
- Size: 118 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Divine Intervention
Adds some features for use within mixins## Injectors
### ModifyOperand
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.### EnumInject
A slightly weird injector that adds a constant to an enum. See [EnumInject.md](EnumInject.md) for an example.### CustomInject
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.## Installation
### Groovy
build.gradle:
```groovy
repositories {
maven {
name = "Jitpack"
url = "https://jitpack.io"
}
}dependencies {
modImplementation annotationProcessor(include("com.github.devs-immortal:Divine-Intervention:${project.divine_intervention_version}"))
}
```
gradle.properties:
```properties
divine_intervention_version = 2.0.0
```### Kotlin
build.gradle.kts:
```kotlin
val divineInterventionVersion: String by propertiesrepositories {
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:
```properties
divineInterventionVersion = 2.0.0
```