mc_protocol v0.0.2 McProtocol.NBT
Module for reading and writing NBT (http://wiki.vg/NBT)
The optional argument on the read/write functions allows the root tag to be nil. This encodes as a NBT end tag.
Summary
Types
byte_array_tag :: {:byte_array, tag_name, binary}
compound_tag :: {:compound, tag_name, [tag]}
int_array_tag :: {:int_array, tag_name, [integer]}
integer_tag :: {:byte | :short | :int | :long, tag_name, integer}
string_tag :: {:string, tag_name, binary}
t :: compound_tag
tag ::
integer_tag |
float_tag |
byte_array_tag |
string_tag |
list_tag |
compound_tag |
int_array_tag
tag_name :: binary | nil