All Downloads are FREE. Search and download functionalities are using the official Maven repository.

walkmc.nbt.TagAdapter.kt Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
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