nbeet/nbt

Types

pub opaque type Nbt
pub type Tag =
  @internal Tag

Values

pub fn bool(bool: Bool) -> Tag
pub fn byte(byte: Int) -> Tag
pub fn byte_array(byte_array: BitArray) -> Tag
pub fn compound(compound: List(#(String, Tag))) -> Tag
pub fn decode_tag(
  bit_array: BitArray,
  decoder: decode.Decoder(t),
) -> Result(t, error.Error)
pub fn double(double: Float) -> Tag
pub const empty: Tag
pub fn encode_tag(tag: Tag) -> BitArray
pub fn float(float: Float) -> Tag
pub fn int(int: Int) -> Tag
pub fn int_array(int_array: List(Int)) -> Tag
pub fn java_decode(
  bit_array: BitArray,
  decoder: decode.Decoder(t),
) -> Result(#(String, t), error.Error)
pub fn java_encode(nbt: Nbt, root_name: String) -> BitArray
pub fn java_network_decode(
  bit_array: BitArray,
  decoder: decode.Decoder(t),
) -> Result(t, error.Error)
pub fn java_network_encode(nbt: Nbt) -> BitArray
pub fn list(tag: fn(value) -> Tag, list: List(value)) -> Tag
pub fn long(long: Int) -> Tag
pub fn long_array(long_array: List(Int)) -> Tag
pub fn root(root: List(#(String, Tag))) -> Nbt
pub fn short(short: Int) -> Tag
pub fn string(string: String) -> Tag
Search Document