class Nbt::Region

Defined in:

region.cr

Constant Summary

CHUNK_SIZE = 16
SIZE = 32

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(io : IO) #

[View source]

Class Method Detail

def self.chunk_coords(x : Float64, z : Float64) #

[View source]
def self.region_coords(x : Float64, z : Float64) #

[View source]

Instance Method Detail

def io : IO #

[View source]
def read_chunk(x : Int32, z : Int32) #

Parameters:

  • x : X coordinate of the chunk
  • z : Z coordinate of the chunk

[View source]
def timestamp(x : Int32, z : Int32) #

[View source]