From f08c792c00cce1e01282d932ea8ad842a12bf29c Mon Sep 17 00:00:00 2001 From: thedarkcolour <30441001+thedarkcolour@users.noreply.github.com> Date: Mon, 17 Aug 2020 14:36:23 -0700 Subject: Update to Kotlin for Forge 1.4.1 --- build.gradle | 2 +- changelog.md | 3 ++ .../thedarkcolour/kotlinforforge/KotlinForForge.kt | 4 +- .../kotlinforforge/forge/KDeferredRegister.kt | 2 +- .../1.4.1/kotlinforforge-1.4.1-sources.jar | Bin 0 -> 34530 bytes .../1.4.1/kotlinforforge-1.4.1-sources.jar.md5 | 1 + .../1.4.1/kotlinforforge-1.4.1-sources.jar.sha1 | 1 + .../kotlinforforge/1.4.1/kotlinforforge-1.4.1.jar | Bin 0 -> 97452 bytes .../1.4.1/kotlinforforge-1.4.1.jar.md5 | 1 + .../1.4.1/kotlinforforge-1.4.1.jar.sha1 | 1 + .../kotlinforforge/1.4.1/kotlinforforge-1.4.1.pom | 60 +++++++++++++++++++++ .../1.4.1/kotlinforforge-1.4.1.pom.md5 | 1 + .../1.4.1/kotlinforforge-1.4.1.pom.sha1 | 1 + thedarkcolour/kotlinforforge/1.4.1/web.html | 20 +++++++ thedarkcolour/kotlinforforge/maven-metadata.xml | 3 +- thedarkcolour/kotlinforforge/web.html | 2 + 16 files changed, 97 insertions(+), 5 deletions(-) create mode 100644 thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1-sources.jar create mode 100644 thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1-sources.jar.md5 create mode 100644 thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1-sources.jar.sha1 create mode 100644 thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.jar create mode 100644 thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.jar.md5 create mode 100644 thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.jar.sha1 create mode 100644 thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.pom create mode 100644 thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.pom.md5 create mode 100644 thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.pom.sha1 create mode 100644 thedarkcolour/kotlinforforge/1.4.1/web.html diff --git a/build.gradle b/build.gradle index b789ad0..46cdb16 100644 --- a/build.gradle +++ b/build.gradle @@ -22,7 +22,7 @@ apply plugin: 'net.minecraftforge.gradle' apply plugin: 'kotlin' apply plugin: 'org.jetbrains.dokka' -version = "1.4.0" +version = "1.4.1" group = 'thedarkcolour.kotlinforforge' archivesBaseName = 'kotlinforforge' diff --git a/changelog.md b/changelog.md index 3827933..a8656cf 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +##Kotlin for Forge 1.4.1 +- Fixed `KDeferredRegistry` registering things out of order + ##Kotlin for Forge 1.4.0 - Kotlin Gradle Plugin now requires Gradle 5.3. Update by changing the version of the gradle wrapper in `gradle/wrapper/gradle-wrapper.properties`. - Added a `KDeferredRegistry` similar to Forge's `DeferredRegistry` but works with `ObjectHolderDelegate`s instead of `RegistryObject`s. diff --git a/src/main/kotlin/thedarkcolour/kotlinforforge/KotlinForForge.kt b/src/main/kotlin/thedarkcolour/kotlinforforge/KotlinForForge.kt index eeaaef4..237c445 100644 --- a/src/main/kotlin/thedarkcolour/kotlinforforge/KotlinForForge.kt +++ b/src/main/kotlin/thedarkcolour/kotlinforforge/KotlinForForge.kt @@ -5,12 +5,12 @@ import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext /** * Set `modLoader` in mods.toml to - * `"kotlinforforge"` and loaderVersion to `"[1.3,1.4)"`. + * `"kotlinforforge"` and loaderVersion to `"[1.4,)"`. * * Make sure to use [KotlinModLoadingContext] * instead of [FMLJavaModLoadingContext]. * - * For a more thorough example mod, + * For a more detailed example mod, * check out the [KotlinModdingSkeleton repository](https://github.com/thedarkcolour/KotlinModdingSkeleton). */ @Mod("kotlinforforge") diff --git a/src/main/kotlin/thedarkcolour/kotlinforforge/forge/KDeferredRegister.kt b/src/main/kotlin/thedarkcolour/kotlinforforge/forge/KDeferredRegister.kt index f556d0f..e4f40e9 100644 --- a/src/main/kotlin/thedarkcolour/kotlinforforge/forge/KDeferredRegister.kt +++ b/src/main/kotlin/thedarkcolour/kotlinforforge/forge/KDeferredRegister.kt @@ -22,7 +22,7 @@ public class KDeferredRegister>( /** * A map of all registry objects and their value suppliers. */ - private val entries = HashMap, () -> V>() + private val entries = LinkedHashMap, () -> V>() /** * Alternative constructor that uses a class instead of a registry. diff --git a/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1-sources.jar b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1-sources.jar new file mode 100644 index 0000000..c1785b5 Binary files /dev/null and b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1-sources.jar differ diff --git a/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1-sources.jar.md5 b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1-sources.jar.md5 new file mode 100644 index 0000000..8b31a18 --- /dev/null +++ b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1-sources.jar.md5 @@ -0,0 +1 @@ +073d2a8ffb10fdc9d0f0cb1d170821be \ No newline at end of file diff --git a/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1-sources.jar.sha1 b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1-sources.jar.sha1 new file mode 100644 index 0000000..24fb2e1 --- /dev/null +++ b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1-sources.jar.sha1 @@ -0,0 +1 @@ +e2ffd7e63fa65da4177fa95890774b890fac2533 \ No newline at end of file diff --git a/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.jar b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.jar new file mode 100644 index 0000000..1dc4ad6 Binary files /dev/null and b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.jar differ diff --git a/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.jar.md5 b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.jar.md5 new file mode 100644 index 0000000..feaaae2 --- /dev/null +++ b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.jar.md5 @@ -0,0 +1 @@ +feb6bc90c3c8be2cab58eeb5a12d20a7 \ No newline at end of file diff --git a/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.jar.sha1 b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.jar.sha1 new file mode 100644 index 0000000..86c84b9 --- /dev/null +++ b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.jar.sha1 @@ -0,0 +1 @@ +fdeed7df46a2afc10a5a24ce6d28c12f5240123c \ No newline at end of file diff --git a/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.pom b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.pom new file mode 100644 index 0000000..9aee9f8 --- /dev/null +++ b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.pom @@ -0,0 +1,60 @@ + + + 4.0.0 + thedarkcolour + kotlinforforge + 1.4.1 + + + kt-eap + Kotlin Early Access + https://dl.bintray.com/kotlin/kotlin-eap + + + + + org.jetbrains.kotlin + kotlin-stdlib + 1.4.0-rc + compile + + + org.jetbrains.kotlin + kotlin-stdlib-jdk7 + 1.4.0-rc + compile + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + 1.4.0-rc + compile + + + org.jetbrains.kotlin + kotlin-reflect + 1.4.0-rc + compile + + + org.jetbrains + annotations + 19.0.0 + compile + + + org.jetbrains.kotlinx + kotlinx-coroutines-core + 1.3.7 + compile + + + org.jetbrains.kotlinx + kotlinx-coroutines-jdk8 + 1.3.7 + compile + + + diff --git a/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.pom.md5 b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.pom.md5 new file mode 100644 index 0000000..89a88a9 --- /dev/null +++ b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.pom.md5 @@ -0,0 +1 @@ +01891273a472255f87c0993002d9ce77 \ No newline at end of file diff --git a/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.pom.sha1 b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.pom.sha1 new file mode 100644 index 0000000..edcd02e --- /dev/null +++ b/thedarkcolour/kotlinforforge/1.4.1/kotlinforforge-1.4.1.pom.sha1 @@ -0,0 +1 @@ +9eb0116d6347659b5c49df0630ae294a30a130c7 \ No newline at end of file diff --git a/thedarkcolour/kotlinforforge/1.4.1/web.html b/thedarkcolour/kotlinforforge/1.4.1/web.html new file mode 100644 index 0000000..a5bab15 --- /dev/null +++ b/thedarkcolour/kotlinforforge/1.4.1/web.html @@ -0,0 +1,20 @@ + + +Index of /1.4.1/ + +

Index of /kotlinforforge/

+
+
../
+kotlinforforge-1.4.1-sources.jar
+kotlinforforge-1.4.1-sources.jar.sha1
+kotlinforforge-1.4.1-sources.jar.md5
+kotlinforforge-1.4.1.jar
+kotlinforforge-1.4.1.jar.sha1
+kotlinforforge-1.4.1.jar.md5
+kotlinforforge-1.4.1.pom
+kotlinforforge-1.4.1.pom.sha1
+kotlinforforge-1.4.1.pom.md5
+
+
+ + diff --git a/thedarkcolour/kotlinforforge/maven-metadata.xml b/thedarkcolour/kotlinforforge/maven-metadata.xml index 6745bc5..85237c7 100644 --- a/thedarkcolour/kotlinforforge/maven-metadata.xml +++ b/thedarkcolour/kotlinforforge/maven-metadata.xml @@ -3,7 +3,7 @@ thedarkcolour kotlinforforge - 1.4.0 + 1.4.1 1.0.0 1.0.1 @@ -14,6 +14,7 @@ 1.3.0 1.3.1 1.4.0 + 1.4.1 diff --git a/thedarkcolour/kotlinforforge/web.html b/thedarkcolour/kotlinforforge/web.html index 90eeb5f..fc75942 100644 --- a/thedarkcolour/kotlinforforge/web.html +++ b/thedarkcolour/kotlinforforge/web.html @@ -16,6 +16,8 @@ 1.2.2 1.3.0 1.3.1 +1.4.0 +1.4.1 maven-metadata.xml maven-metadata.xml.md5 maven-metadata.xml.sha1 -- cgit