class Rosegold::Chunk

Defined in:

rosegold/world/chunk.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def block_entities : Array(Rosegold::Chunk::BlockEntity) #

[View source]
def block_entities=(block_entities : Array(Rosegold::Chunk::BlockEntity)) #

[View source]
def block_state(x : Int32, y : Int32, z : Int32) : BlockStateNr | Nil #

Returns nil if outside world vertically.


[View source]
def data : Bytes #

[View source]
def heightmaps : Minecraft::NBT::Tag #

[View source]
def heightmaps=(heightmaps : Minecraft::NBT::Tag) #

[View source]
def light_data : Slice(UInt8) #

[View source]
def light_data=(light_data : Slice(UInt8)) #

[View source]
def sections : Array(Section) #

[View source]
def set_block_state(x : Int32, y : Int32, z : Int32, block_state : BlockStateNr) #

[View source]
def x : Int32 #

[View source]
def z : Int32 #

[View source]