ChunkVersion {rbedrock} | R Documentation |
Read and write chunk version data
Description
Version data (tag 44) and LegacyVersion data (tag 118) store the version number of a chunk. In Minecraft version 1.16.100, chunk version data was moved from tag 118 to tag 44.
get_chunk_version_data()
and get_chunk_version_value()
load Version
data from db
. get_chunk_version_data()
will silently drop and keys not
representing Version data. get_chunk_version_value()
supports loading
only a single value. get_chunk_version_values()
is a synonym for
get_chunk_version_data()
.
put_chunk_version_data()
, put_chunk_version_values()
, and
put_chunk_version_value()
store Version data into a bedrockdb
.
read_chunk_version_value()
decodes Version data.
write_chunk_version_value()
encodes Version data.
Usage
get_chunk_version_data(db, x, z, dimension)
get_chunk_version_values(db, x, z, dimension)
get_chunk_version_value(db, x, z, dimension)
put_chunk_version_data(db, data)
put_chunk_version_values(db, x, z, dimension, values)
put_chunk_version_value(db, x, z, dimension, value)
read_chunk_version_value(rawdata)
write_chunk_version_value(num)
Arguments
db |
A bedrockdb object. |
x , z , dimension |
Chunk coordinates to extract version data from.
|
data |
A named-vector of key-value pairs for Version data. |
values |
An integer vector |
value |
A scalar integer vector |
rawdata |
A scalar raw. |
num |
A scalar integer. |