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
|
import space.uranos.server.Server
|
||||||
|
|
||||||
private lateinit var serverInstance: Server
|
lateinit var Uranos: Server; private set
|
||||||
|
|
||||||
val Uranos get() = serverInstance
|
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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"))
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in a new issue