class Rosegold::Dimension

Defined in:

rosegold/world/dimension.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, nbt : Minecraft::NBT::Tag) #

[View source]
def self.new #

[View source]

Instance Method Detail

def block_state(x : Int32, y : Int32, z : Int32) : UInt16 | Nil #

[View source]
def block_state(location : Vec3d) : UInt16 | Nil #

[View source]
def block_state(location : Vec3i) : UInt16 | Nil #

[View source]
def chunks : Hash({Int32, Int32}, Rosegold::Chunk) #

[View source]
def entities : Hash(UInt64, Entity) #

[View source]
def entities=(entities : Hash(UInt64, Entity)) #

[View source]
def load_chunk(chunk : Chunk) #

[View source]
def min_y : Int32 #

[View source]
def name : String #

[View source]

[View source]
def raycast_entity(start : Vec3d, look : Vec3d, max_distance : Float64) : Entity | Nil #

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

[View source]
def set_block_state(location : Vec3i, block_state : UInt16) #

[View source]
def unload_chunk(chunk_pos : ChunkPos) #

[View source]
def world_height : Int32 #

[View source]