nbeet

Types

pub opaque type Nbt

Functions

pub fn byte(byte: Int) -> Tag
pub fn byte_array(byte_array: BitArray) -> Tag
pub fn compound(compound: List(#(String, Tag))) -> Tag
pub fn double(double: Float) -> Tag
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: Decoder(a),
) -> Result(#(String, a), List(DecodeError))
pub fn java_encode(
  nbt: Nbt,
  root_name: String,
) -> Result(BitArray, Nil)
pub fn java_network_decode(
  bit_array: BitArray,
  decoder: Decoder(a),
) -> Result(a, List(DecodeError))
pub fn java_network_encode(nbt: Nbt) -> Result(BitArray, Nil)
pub fn list(tag: fn(a) -> Tag, list: List(a)) -> 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