
walkmc.nbt.TagAdapter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
package walkmc.nbt
import net.minecraft.server.*
/**
* A tag adapter represents a adaptable type of tag to use with [NBTTagCompound].
*/
interface TagAdapter {
/**
* Loads the specified type of adapter.
*/
fun load(key: String, tag: NBTTagCompound): T
/**
* Saves the specified type of adapter.
*/
fun save(key: String, value: T, tag: NBTTagCompound)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy