Checksums {rbedrock} | R Documentation |
Load and store Checksums data
Description
Checksums data (tag 59) holds checksums for several chunk records. These records are 2DMaps (tag 45), SubchunkBlocks (tag 47), BlockEntities (tag 49), and Entities (tag 50).
get_checksums_data()
loads Checksums data from a bedrockdb
.
It will silently drop and keys not representing Checksums data.
get_checksums_values()
is a synonym for get_checksums_data()
.
get_checksums_value()
loads Checksums data from a bedrockdb
.
It only supports loading a single value.
update_checksums_data()
recalculates Checksums data.
It calculates checksums for the specified chunks'
SubchunkBlocks, 2DMaps, BlockEntities, and Entities
records in db
and updates the Checksums record to match.
read_checksums_value()
parses a binary Checksums record
into a list of checksums.
write_checksums_value()
converts Checksums from a named list into
binary format.
Usage
get_checksums_data(db, x, z, dimension)
get_checksums_values(db, x, z, dimension)
get_checksums_value(db, x, z, dimension)
update_checksums_data(db, x, z, dimension)
read_checksums_value(rawdata)
write_checksums_value(object)
Arguments
db |
A bedrockdb object. |
x , z , dimension |
Chunk coordinates to extract data from.
|
rawdata |
a raw vector holding binary Checksums data |
object |
a named character vector in the same format as returned by
|
Value
get_checksums_data()
returns a named-list of the values returned
by get_checksums_value()
.
get_checksums_value()
and read_checksums_value()
return a character vector.
The names of the character vector indicate which
chunk record (tag and subtag) the checksum is for.
write_checksums_value()
returns a raw vector.