Update NBTDataType.kt

This commit is contained in:
bluefireoly
2020-08-27 20:50:46 +02:00
parent 8e46feb586
commit 530d1cab75

View File

@@ -3,9 +3,6 @@ package net.axay.kspigot.nbt
import net.axay.kspigot.annotations.NMS_General
import net.minecraft.server.v1_16_R1.*
/**
* @property T the JVM data type
*/
@NMS_General
interface NBTDataType<T> {
@@ -30,6 +27,10 @@ interface NBTDataType<T> {
}
/**
* @property T the JVM data type
* @property E the NBT data type
*/
private inline fun <T, reified E> nbtDataType(
crossinline decodeNMS: (E) -> T,
crossinline writeToCompound: (key: String, data: T, compound: NBTTagCompound) -> Unit