| Copyright | (c) Adam C. Foltzer 2010-2011 |
|---|---|
| License | BSD3 |
| Maintainer | acfoltzer@gmail.com |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.NBT
Description
Defines a Haskell representation of Minecraft's NBT binary data
format, along with instances of Serialize. See the
NBT specification for details:
https://raw.github.com/acfoltzer/nbt/master/NBT-spec.txt.
- data TagType
- data NBT = NBT Text NbtContents
- data NbtContents
- typeOf :: NbtContents -> TagType
Documentation
Tag types listed in order so that deriving Enum will assign
them the correct number for the binary type field.
Primitive representation of NBT data. This type contains only the data part, since named nodes can only exist inside compound nodes.
Constructors
| NBT Text NbtContents |
data NbtContents Source #
Constructors
Instances
typeOf :: NbtContents -> TagType Source #