From 885e4f7e6a760943c5978204f8634057ad01a7db Mon Sep 17 00:00:00 2001 From: thedarkcolour <30441001+thedarkcolour@users.noreply.github.com> Date: Mon, 11 Nov 2019 15:00:00 -0800 Subject: Adding files --- .../kotlinforforge/registry/KtRegistryObject.kt | 3 ++- .../1.0.0/kotlinforforge-1.0.0-sources.jar | Bin 7778 -> 7849 bytes .../1.0.0/kotlinforforge-1.0.0-sources.jar.md5 | 2 +- .../1.0.0/kotlinforforge-1.0.0-sources.jar.sha1 | 2 +- .../kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar | Bin 75364 -> 75312 bytes .../1.0.0/kotlinforforge-1.0.0.jar.md5 | 2 +- .../1.0.0/kotlinforforge-1.0.0.jar.sha1 | 2 +- 7 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/thedarkcolour/kotlinforforge/registry/KtRegistryObject.kt b/src/main/kotlin/thedarkcolour/kotlinforforge/registry/KtRegistryObject.kt index 0b44705..fe20cc4 100644 --- a/src/main/kotlin/thedarkcolour/kotlinforforge/registry/KtRegistryObject.kt +++ b/src/main/kotlin/thedarkcolour/kotlinforforge/registry/KtRegistryObject.kt @@ -10,11 +10,12 @@ import java.util.function.Supplier /** * An alternative to DeferredRegistry that enforces non-nullability. */ -open class KtRegistryObject>(private val name: ResourceLocation, private val registry: IForgeRegistry) : Supplier { +open class KtRegistryObject>(val name: ResourceLocation, registry: IForgeRegistry) : Supplier { private lateinit var value: T constructor(name: String, registry: IForgeRegistry) : this(ResourceLocation(name), registry) + @Suppress("UNCHECKED_CAST") constructor(name: String, registryType: Supplier>) : this(ResourceLocation(name), RegistryManager.ACTIVE.getRegistry(registryType.get()) as IForgeRegistry) init { diff --git a/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar b/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar index d02a1fe..959d512 100644 Binary files a/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar and b/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar differ diff --git a/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar.md5 b/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar.md5 index 22a5ee6..65bc55e 100644 --- a/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar.md5 +++ b/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar.md5 @@ -1 +1 @@ -f2ca40ef2c37abc659e03263b6276804 \ No newline at end of file +243c01afe27b3b5b634254fb03321d5f \ No newline at end of file diff --git a/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar.sha1 b/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar.sha1 index 0b5e05d..2e8aa7b 100644 --- a/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar.sha1 +++ b/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar.sha1 @@ -1 +1 @@ -4dd281d62e40171dfa445bb085c1e50727167481 \ No newline at end of file +20de21470f8a20180abe80a7b4d1a35b9e990d09 \ No newline at end of file diff --git a/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar b/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar index e692f59..c9c1d28 100644 Binary files a/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar and b/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar differ diff --git a/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar.md5 b/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar.md5 index 755979c..7a985b1 100644 --- a/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar.md5 +++ b/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar.md5 @@ -1 +1 @@ -1d2fc2245fcf14f42203a88eee685d4b \ No newline at end of file +c1209ee29ff3ee083586c27d91e0f280 \ No newline at end of file diff --git a/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar.sha1 b/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar.sha1 index 9b0db5b..565c173 100644 --- a/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar.sha1 +++ b/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar.sha1 @@ -1 +1 @@ -8dbf8625f2d90ebfbae8e0f8cbacb3a3672332b8 \ No newline at end of file +e2ef143b4922c8849907ddafe669b4cb5a7164b1 \ No newline at end of file -- cgit