struct Nbt::Region::Header

Overview

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

Defined in:

region.cr

Constant Summary

BYTE_SIZE = 4
ENTRIES = 1024

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Int32, z : Int32) #

[View source]

Instance Method Detail

def offset #

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


[View source]
def timestamp_offset #

The timestamps are listed in the second part of the header


[View source]
def x : Int32 #

[View source]
def z : Int32 #

[View source]