Tags
Creators
Details
All versions
3.17
Release
hooklib 3.172 years ago 281
Compatibility
Minecraft: Java Edition
1.12.2
Platform
Forge
Supported environments
Client-side
Server-side
Changes
- consider @SideOnly-marked hooks
- added lenses for accessing methods
- field lenses:
- added support for static fields
- added way to work with primitive fields
- added way to define default value of created field
- fix field creation with no FieldLens#createField turned to true
- consider obfuscation of field names
- hooklib keep self as last applicable transformer
- added feature of class dumping which changed by hooklib
- jars with hooks will be added to classpath like regular coremods
- added logging to separate file
- added feature of multiple ordinal's in one hook
- make @OnMethodCall with shift=INSTEAD more safe with type checks of replaced
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:EML2u4I8:gvhuXCWG"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:EML2u4I8:gvhuXCWG"
}

