get_nbt_data {rbedrock} | R Documentation |
Read and Write NBT Data
Description
get_nbt_data()
and get_nbt_value()
load nbt-formatted data from db
and parses it. get_nbt_values()
is a synonym for get_nbt_data()
.
put_nbt_values()
, put_nbt_value()
, and put_nbt_data()
store nbt data
into db
in binary form.
read_nbt
reads NBT data from a raw
vector.
read_nbt_data
calls read_nbt
on each element of a list.
write_nbt
encodes NBT data into a raw
vector.
write_nbt_data
calls write_nbt
on each element of a list.
Usage
get_nbt_data(db, keys, readoptions = NULL, simplify = TRUE)
get_nbt_value(db, key, readoptions = NULL, simplify = TRUE)
get_nbt_values(db, keys, readoptions = NULL, simplify = TRUE)
put_nbt_values(db, keys, values, writeoptions = NULL)
put_nbt_value(db, key, value, writeoptions = NULL)
put_nbt_data(db, data, writeoptions = NULL)
read_nbt(rawdata, simplify = TRUE)
read_nbt_data(data, simplify = TRUE)
write_nbt(object)
write_nbt_data(data)
Arguments
db |
A |
keys |
A character vector of keys. |
readoptions |
A |
simplify |
If TRUE, simplifies a list containing a single unnamed
|
key |
A single key. |
values |
A list of nbt objects |
writeoptions |
A |
value |
An nbt object. |
data |
A named-list specifying key-value pairs. |
rawdata |
A |
object |
An nbt object or a list of nbt objects |
Details
The Named Binary Tag (NBT) format is used by Minecraft for various data types.