nbt-0.7: A parser/serializer for Minecraft's Named Binary Tag (NBT) data format.

Copyright(c) Adam C. Foltzer 2010-2011
LicenseBSD3
Maintaineracfoltzer@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

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.

Synopsis

Documentation

data TagType Source #

Tag types listed in order so that deriving Enum will assign them the correct number for the binary type field.

data NBT Source #

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 

Instances

Eq NBT Source # 

Methods

(==) :: NBT -> NBT -> Bool #

(/=) :: NBT -> NBT -> Bool #

Show NBT Source # 

Methods

showsPrec :: Int -> NBT -> ShowS #

show :: NBT -> String #

showList :: [NBT] -> ShowS #

Serialize NBT Source # 

Methods

put :: Putter NBT #

get :: Get NBT #