Kotlin support for Minecraft Forge 1.8-11.14.1.1371 or above
![]() Using the Adapter
Downloaded a bunch of presets from the lazy. I can't figure out how to import them into my games. Can somebody give me a quick guide on how to make manually downloaded lazy presets work with REshade 1.0? This is the repository of materials for a manuscript by Bowsher, Kearns, and Shade (2018) submitted to mSystems. R 1 1 0 0 Updated May 29, 2019 applereplant.
The basic workflow for using the Adapter in your project is;
Buildscript Preparation![]()
These instructions are for FG 2.1+. Kcncrew pack 02-15-20 crack.
We require the Kotlin and Forge plugins to be enabled in
build.gradle :
Repackaging
This technique requires tinkering with your
build.gradle file.
Shade 10 Lenses
As a second warning: Doing this wrong could break other Kotlin-based mods!
Now the warnings are out the way, we're going to use a technique called shading combined with repacking. Built jars ofthe adapter do not come with Kotlin installations. This means your mod must include its own, repackaged version.
First, we need to add a new configuration:
Then on the lines where you would normally define
compile in the main dependencies block for Kotlin, replace compile with shade - below is an example dependency block (for Kotlin 1.0.1.) If you need the kotlin-reflect library,add that in the same way (but be aware this'll add >1MB to your jar size!)
Next, tell Gradle what to do with this new
shade configuration inside the jar {} block: https://treecr671.weebly.com/blog/expert-bundle-30.
Finally, ask ForgeGradle to add some extra rules for reobfuscation, to avoid namespace issues with other Kotlin versionsthat may be on the classpath:
The destination package (
your/package/here/repack for this example) can be any package you think won't clash, eitherwith your code or anybody else's packages. As in the example, package paths use forward slash (/ ) in PK lines. Daz studio pro v4.9.0.63.
Your @Mod implementation must be an
object . There is no reason to make it a class and the adapter will not work ifyou do so.
LicensesShade 1.0.1 Pro
The Kotlin Adapter is licensed under the ISC License (see
LICENSE ), which is just a modernised version of the MITLicense.
Share 101
Kotlin is property of Jetbrains. Look at their site for licensing bumf.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |