Archived
1
0
Fork 0

Update some TODO comments

This commit is contained in:
Moritz Ruth 2020-12-26 23:03:14 +01:00
parent 7ec322769b
commit 99bc827261
No known key found for this signature in database
GPG key ID: AFD57E23E753841B
4 changed files with 4 additions and 3 deletions

View file

@ -5,7 +5,7 @@ import space.blokk.item.ItemType
import space.blokk.world.NUMERIC_FLUID_IDS_BY_ID
import space.blokk.world.block.Material
// TODO: Replace lazy properties with functions called during startup
// 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>) {
val values: List<String> by lazy {
val tags = TagRegistry.tagsByNameByType.getValue(type)

View file

@ -4,7 +4,6 @@ import kotlin.experimental.and
import kotlin.experimental.inv
import kotlin.experimental.or
// TODO: Use UByte
/**
* Returns true if the bit at [index] is 1.
*/

View file

@ -62,7 +62,7 @@ data class Biome(
MoodSound(
6000,
2.0,
"minecraft:ambient.cave", // TODO: Create constants for vanilla sounds
"minecraft:ambient.cave",
8
),
0.8f,

View file

@ -63,6 +63,8 @@ object ChunkDataPacketCodec : OutgoingPacketCodec<ChunkDataPacket>(0x20, ChunkDa
dst.writeVarInt(it.numericID ?: throw IllegalStateException("A biome in the chunk was not registered"))
}
// TODO: Use palettes
// Blocks
val dataBuf = Unpooled.buffer() // TODO: Set an initial capacity
for (section in data.sections.filterNotNull()) {