class Rosegold::MCData

Overview

parsed minecraft-data for a particular mc version

Defined in:

rosegold/world/mcdata.cr

Constant Summary

MC118 = Rosegold::MCData.new("1.18")

Constructors

Instance Method Summary

Constructor Detail

def self.new(mc_version : String) #

[View source]

Instance Method Detail

def block_state_collision_shapes : Array(Array(AABBf)) #

block state nr -> array of AABBs that combine to make up that block state shape

TODO more compact memory layout: only store one Shape if it's the same for all variants of a block


[View source]
def block_state_names : Array(String) #

block state nr -> "oak_slab[type=top, waterlogged=true]"


[View source]
def blocks : Array(Block) #

[View source]
def blocks_by_id : Hash(String, Block) #

[View source]
def items : Array(Item) #

[View source]
def items_by_id : Hash(String, Item) #

[View source]
def items_by_id_int : Hash(UInt32, Item) #

[View source]
def materials : Material #

[View source]