Cleanup TODO comments
This commit is contained in:
parent
91e902ecd1
commit
33e942f517
7 changed files with 4 additions and 10 deletions
|
@ -7,6 +7,4 @@ package space.uranos
|
|||
|
||||
import space.uranos.server.Server
|
||||
|
||||
private lateinit var serverInstance: Server
|
||||
|
||||
val Uranos get() = serverInstance
|
||||
lateinit var Uranos: Server; private set
|
||||
|
|
|
@ -9,5 +9,4 @@ import space.uranos.RegistryItem
|
|||
|
||||
abstract class Command : RegistryItem {
|
||||
abstract override val id: String
|
||||
// TODO
|
||||
}
|
||||
|
|
|
@ -9,5 +9,4 @@ import space.uranos.RegistryItem
|
|||
|
||||
sealed class Recipe: RegistryItem {
|
||||
abstract val group: String
|
||||
// TODO
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ import space.uranos.world.NUMERIC_FLUID_IDS_BY_ID
|
|||
import space.uranos.world.block.Material
|
||||
|
||||
// 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 tags = TagRegistry.tagsByNameByType.getValue(type)
|
||||
|
||||
|
|
|
@ -33,8 +33,6 @@ data class ChunkData(
|
|||
* Will be computed using [sections] if null.
|
||||
*/
|
||||
val nonAirBlocksHeightmap: ByteArray? = null
|
||||
|
||||
// TODO: Add options for specifying how the encoded packet should be cached.
|
||||
) {
|
||||
|
||||
companion object {
|
||||
|
|
|
@ -16,7 +16,7 @@ repositories {
|
|||
dependencies {
|
||||
// Kotlin
|
||||
implementation(KotlinX.coroutines.core)
|
||||
implementation(KotlinX.coroutines.jdk8) // TODO: What is jdk9?
|
||||
implementation(KotlinX.coroutines.jdk8)
|
||||
|
||||
// Uranos
|
||||
implementation(project(":uranos-api"))
|
||||
|
|
|
@ -151,7 +151,7 @@ class UranosServer internal constructor() : Server() {
|
|||
|
||||
fun setServerInstance(instance: Server) {
|
||||
val clazz = Class.forName("space.uranos.UranosKt")
|
||||
val field = clazz.getDeclaredField("serverInstance")
|
||||
val field = clazz.getDeclaredField("Uranos")
|
||||
field.isAccessible = true
|
||||
field.set(null, instance)
|
||||
field.isAccessible = false
|
||||
|
|
Reference in a new issue