From 6f7de8716b6c40339b5dc68062baed9c004a77b9 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Thu, 20 Apr 2023 16:41:35 +0100 Subject: [PATCH] Added KRegistrable --- .../com/willfp/eco/core/registry/KRegistrable.kt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 eco-api/src/main/kotlin/com/willfp/eco/core/registry/KRegistrable.kt diff --git a/eco-api/src/main/kotlin/com/willfp/eco/core/registry/KRegistrable.kt b/eco-api/src/main/kotlin/com/willfp/eco/core/registry/KRegistrable.kt new file mode 100644 index 00000000..e61ad5d5 --- /dev/null +++ b/eco-api/src/main/kotlin/com/willfp/eco/core/registry/KRegistrable.kt @@ -0,0 +1,13 @@ +package com.willfp.eco.core.registry + +/** + * A registrable that has a string ID, for use with Kotlin. + */ +interface KRegistrable : Registrable { + /** + * The ID of the registrable. + */ + val id: String + + override fun getID() = id +}