class

Rosegold::Dimension

Inherits Reference / Object

Constants

REGISTRY_ID = "minecraft:dimension_type"

Constructors

new(name : String, nbt : Minecraft::NBT::Tag)
Source

Class methods

for_dimension_name(name : String)
Source
from_registry(name : String, dimension_type : UInt32, registries : Hash(String, Rosegold::Clientbound::RegistryData))

Build a Dimension from the server-provided dimension_type registry entry. dimension_type indexes into minecraft:dimension_type, whose codec NBT carries the authoritative min_y / height for this server. Falls back to vanilla defaults keyed by dimension name when the registry is missing or the entry is unparseable.

Source
new_end
Source
new_nether
Source

Instance methods

block_state(x : Int32, y : Int32, z : Int32) : UInt16 | Nil
Source
block_state(location : Vec3d) : UInt16 | Nil
Source
block_state(location : Vec3i) : UInt16 | Nil
Source
chunk_at?(x : Int32, z : Int32) : Chunk | Nil
Source
chunks
Source
dimension_type
Source
dimension_type=(dimension_type : UInt32)
Source
entities
Source
entities=(entities : Hash(UInt64, Entity))
Source
load_chunk(chunk : Chunk)
Source
min_y
Source
name
Source
raycast_entity(start : Vec3d, look : Vec3d, max_distance : Float64) : Entity | Nil
Source
set_block_state(x : Int32, y : Int32, z : Int32, block_state : UInt16)
Source
set_block_state(location : Vec3i, block_state : UInt16)
Source
time_of_day
Source
time_of_day=(time_of_day : Int64)
Source
unload_chunk(chunk_pos : ChunkPos)
Source
world_age
Source
world_age=(world_age : Int64)
Source
world_height
Source

Nested types