Archived
1
0
Fork 0

Cleanup TODO comments

This commit is contained in:
Moritz Ruth 2021-01-08 14:37:06 +01:00
parent 91e902ecd1
commit 33e942f517
No known key found for this signature in database
GPG key ID: AFD57E23E753841B
7 changed files with 4 additions and 10 deletions

View file

@ -7,6 +7,4 @@ package space.uranos
import space.uranos.server.Server import space.uranos.server.Server
private lateinit var serverInstance: Server lateinit var Uranos: Server; private set
val Uranos get() = serverInstance

View file

@ -9,5 +9,4 @@ import space.uranos.RegistryItem
abstract class Command : RegistryItem { abstract class Command : RegistryItem {
abstract override val id: String abstract override val id: String
// TODO
} }

View file

@ -9,5 +9,4 @@ import space.uranos.RegistryItem
sealed class Recipe: RegistryItem { sealed class Recipe: RegistryItem {
abstract val group: String abstract val group: String
// TODO
} }

View file

@ -11,7 +11,7 @@ import space.uranos.world.NUMERIC_FLUID_IDS_BY_ID
import space.uranos.world.block.Material import space.uranos.world.block.Material
// TODO: Allow plugins to create custom tags and actually use tag values server-side // TODO: Allow plugins to create custom tags and actually use tag values server-side
class Tag(val name: String, val type: Type, val rawValues: List<String>) { class Tag(val name: String, val type: Type, private val rawValues: List<String>) {
val values: List<String> by lazy { val values: List<String> by lazy {
val tags = TagRegistry.tagsByNameByType.getValue(type) val tags = TagRegistry.tagsByNameByType.getValue(type)

View file

@ -33,8 +33,6 @@ data class ChunkData(
* Will be computed using [sections] if null. * Will be computed using [sections] if null.
*/ */
val nonAirBlocksHeightmap: ByteArray? = null val nonAirBlocksHeightmap: ByteArray? = null
// TODO: Add options for specifying how the encoded packet should be cached.
) { ) {
companion object { companion object {

View file

@ -16,7 +16,7 @@ repositories {
dependencies { dependencies {
// Kotlin // Kotlin
implementation(KotlinX.coroutines.core) implementation(KotlinX.coroutines.core)
implementation(KotlinX.coroutines.jdk8) // TODO: What is jdk9? implementation(KotlinX.coroutines.jdk8)
// Uranos // Uranos
implementation(project(":uranos-api")) implementation(project(":uranos-api"))

View file

@ -151,7 +151,7 @@ class UranosServer internal constructor() : Server() {
fun setServerInstance(instance: Server) { fun setServerInstance(instance: Server) {
val clazz = Class.forName("space.uranos.UranosKt") val clazz = Class.forName("space.uranos.UranosKt")
val field = clazz.getDeclaredField("serverInstance") val field = clazz.getDeclaredField("Uranos")
field.isAccessible = true field.isAccessible = true
field.set(null, instance) field.set(null, instance)
field.isAccessible = false field.isAccessible = false