From 39ba21402e25e289c5caa1612703321f3ca865fb Mon Sep 17 00:00:00 2001 From: Licious17 Date: Mon, 2 Aug 2021 16:10:24 +0100 Subject: [PATCH] Updated README.md --- README.md | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 15aa3e9..3af4f4e 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,45 @@ # Forgelin -Fork of [Emberwalker's Forgelin](https://github.com/Emberwalker/Forgelin). + +Fork of [Shadowfacts Forgelin](https://github.com/shadowfacts/Forgelin). ## Additions + - Shades the Kotlin standard library, runtime, coroutines-core, and reflect libraries so you don't have to. - Provides a Forge `ILanguageAdapter` for using Kotlin `object` classes as your main mod class. ## Usage + ```groovy repositories { jcenter() - maven { - url "http://maven.shadowfacts.net/" - } + maven { url 'https://jitpack.io' } } dependencies { - compile group: "net.shadowfacts", name: "Forgelin", version: "LATEST_VERSION" + implementation 'com.github.Licious17:Forgelin:1.9.0' } ``` -All versions can be seen [here](http://maven.shadowfacts.net/net/shadowfacts/Forgelin/). +```kotlin +@Mod( + modid = MyMod.MOD_ID, + name = MyMod.MOD_NAME, + version = MyMod.VERSION, + modLanguageAdapter = "net.shadowfacts.forgelin.KotlinAdapter", + acceptableRemoteVersions = "*", + acceptedMinecraftVersions = "[1.12.2]" +) +object MyMod { + + const val MOD_ID = "mymod" + const val MOD_NAME = "MyMod" + const val VERSION = "1.0.0" + +} +``` + +Full credits to the og authors this simply updates Kotlin and the libraries version. +[EmberWalker](https://github.com/Emberwalker) +[ShadowFacts](https://github.com/shadowfacts) **Note:** You must have the `jcenter()` call in your `repositories` block. JCenter is used to host the Kotlin coroutines libraries.