struct

Nbt::Region::Header

Inherits Struct < Value < Object

A region file has 1024 entries of 4 bytes followed by 1024 entries for 4 byte timestamps

Constants

BYTE_SIZE = 4
ENTRIES = 1024

Constructors

new(x : Int32, z : Int32)
Source

Instance methods

offset

returns the heander entry offset for a chunk at x and z coordinates.

Source
timestamp_offset

The timestamps are listed in the second part of the header

Source