Package org.jglrxavpok.hephaistos.nbt

Types

CompoundBuilder
Link copied to clipboard
fun fun interface CompoundBuilder
CompoundEntry
Link copied to clipboard
typealias CompoundEntry = Map.Entry<String, NBT>
CompressedProcesser
Link copied to clipboard
open class CompressedProcesser<I : InputStream, O : OutputStream>
Processes an InputStream or an OutputStream into a compressed stream.
MutableCompoundEntry
Link copied to clipboard
typealias MutableCompoundEntry = MutableMap.MutableEntry<String, NBT>
NBT
Link copied to clipboard
interface NBT
Most basic representation of a NBTTag
NBTByte
Link copied to clipboard
class NBTByte(value: Byte) : NBTNumber<Byte>
NBTByteArray
Link copied to clipboard
class NBTByteArray(value: ImmutableByteArray) : NBT, Iterable<Byte>
NBTCompound
Link copied to clipboard
class NBTCompound @JvmOverloads() constructor(_tags: Map<String, NBT>) : NBT, NBTCompoundLike
NBTCompoundGetters
Link copied to clipboard
interface NBTCompoundGetters
NBTCompoundLike
Link copied to clipboard
interface NBTCompoundLike : NBTCompoundGetters, Iterable<CompoundEntry>
NBTDouble
Link copied to clipboard
class NBTDouble(value: Double) : NBTNumber<Double>
NBTEnd
Link copied to clipboard
object NBTEnd : NBT, NBTReaderCompanion<NBTEnd>
NBTException
Link copied to clipboard
class NBTException @JvmOverloads() constructor(message: String, cause: Throwable?) : Exception
NBTFloat
Link copied to clipboard
class NBTFloat(value: Float) : NBTNumber<Float>
NBTInt
Link copied to clipboard
class NBTInt(value: Int) : NBTNumber<Int>
NBTIntArray
Link copied to clipboard
class NBTIntArray(value: ImmutableIntArray) : NBT, Iterable<Int>
NBTList
Link copied to clipboard
class NBTList<Tag : NBT@JvmOverloads() constructor(subtagType: NBTType<out Tag>, _tags: List<Tag>) : NBT, Iterable<Tag>
NBTListGenerator
Link copied to clipboard
fun fun interface NBTListGenerator<T : NBT>
NBTLong
Link copied to clipboard
class NBTLong(value: Long) : NBTNumber<Long>
NBTLongArray
Link copied to clipboard
class NBTLongArray(value: ImmutableLongArray) : NBT, Iterable<Long>
NBTNumber
Link copied to clipboard
abstract class NBTNumber<Type : Number>(value: Type) : NBT
NBTReader
Link copied to clipboard
class NBTReader @JvmOverloads() constructor(source: InputStream, compressedProcesser: CompressedProcesser<*, *>) : AutoCloseable, Closeable
Reads NBT Data from a given input stream.
NBTReaderCompanion
Link copied to clipboard
interface NBTReaderCompanion<T : NBT>
Companion object for all final NBT types that allows creation of said NBT object from a DataInputStream.
NBTShort
Link copied to clipboard
class NBTShort(value: Short) : NBTNumber<Short>
NBTString
Link copied to clipboard
class NBTString(value: String) : NBT
NBTType
Link copied to clipboard
open class NBTType<T : NBT>(nbtClass: KClass<T>, readerCompanion: NBTReaderCompanion<T>, readableName: String, ordinal: Int)
NBTWriter
Link copied to clipboard
class NBTWriter @JvmOverloads() constructor(destination: OutputStream, compressedProcesser: CompressedProcesser<*, *>) : AutoCloseable, Closeable
Writes NBT data to a given destination Once the output stream is passed to a NBTWriter, use NBTWriter#close to close the stream.

Functions

readFullyFormedTag
Link copied to clipboard
fun DataInputStream.readFullyFormedTag(): Pair<String, NBT>
Reads a full tag (ID, name and value when applicable) from this input stream
readTag
Link copied to clipboard
fun DataInputStream.readTag(id: Int): NBT
Reads a tag (value only) from this input stream
writeEndTag
Link copied to clipboard
fun DataOutputStream.writeEndTag()
Writes a TAG_End to this output stream
writeFullyFormedTag
Link copied to clipboard
fun DataOutputStream.writeFullyFormedTag(name: String, tag: NBT)
Writes a full tag (ID, name and value when applicable) to this output stream