diff options
author | thedarkcolour <30441001+thedarkcolour@users.noreply.github.com> | 2019-11-11 15:00:00 -0800 |
---|---|---|
committer | thedarkcolour <30441001+thedarkcolour@users.noreply.github.com> | 2019-11-11 15:00:00 -0800 |
commit | 885e4f7e6a760943c5978204f8634057ad01a7db (patch) | |
tree | 70423f61fd84bce9dea0bf08d0d22638916c85aa | |
parent | bf11f1cb96cfeb98a21025459f24f235ff06cd42 (diff) | |
download | KotlinForForge-885e4f7e6a760943c5978204f8634057ad01a7db.tar.gz KotlinForForge-885e4f7e6a760943c5978204f8634057ad01a7db.tar.bz2 KotlinForForge-885e4f7e6a760943c5978204f8634057ad01a7db.zip |
Adding files
-rw-r--r-- | src/main/kotlin/thedarkcolour/kotlinforforge/registry/KtRegistryObject.kt | 3 | ||||
-rw-r--r-- | thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar | bin | 7778 -> 7849 bytes | |||
-rw-r--r-- | thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar.md5 | 2 | ||||
-rw-r--r-- | thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar.sha1 | 2 | ||||
-rw-r--r-- | thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar | bin | 75364 -> 75312 bytes | |||
-rw-r--r-- | thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar.md5 | 2 | ||||
-rw-r--r-- | thedarkcolour/kotlinforforge/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<T : IForgeRegistryEntry<T>>(private val name: ResourceLocation, private val registry: IForgeRegistry<T>) : Supplier<T> { +open class KtRegistryObject<T : IForgeRegistryEntry<T>>(val name: ResourceLocation, registry: IForgeRegistry<T>) : Supplier<T> { private lateinit var value: T constructor(name: String, registry: IForgeRegistry<T>) : this(ResourceLocation(name), registry) + @Suppress("UNCHECKED_CAST") constructor(name: String, registryType: Supplier<Class<out T>>) : this(ResourceLocation(name), RegistryManager.ACTIVE.getRegistry(registryType.get()) as IForgeRegistry<T>) 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 Binary files differindex d02a1fe..959d512 100644 --- a/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar +++ b/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0-sources.jar 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 Binary files differindex e692f59..c9c1d28 100644 --- a/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar +++ b/thedarkcolour/kotlinforforge/1.0.0/kotlinforforge-1.0.0.jar 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 |