Skip to content

Commit be0d986

Browse files
committed
feat: add KSerializer for io.papermc.paper.registry.tag.Tag<org.bukkit.block.BlockType>
1 parent 20b2747 commit be0d986

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package net.azisaba.serialization
2+
3+
import io.papermc.paper.registry.RegistryKey
4+
import kotlinx.serialization.descriptors.PrimitiveKind
5+
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
6+
import kotlinx.serialization.descriptors.SerialDescriptor
7+
import org.bukkit.block.BlockType
8+
9+
object BlockTypeTagSerializer : RegistryTagSerializer<BlockType>(RegistryKey.BLOCK) {
10+
override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor("BlockType", PrimitiveKind.STRING)
11+
}

0 commit comments

Comments
 (0)