class
Rosegold::MCData
- Rosegold::MCData
- Reference
- Object
Overview
parsed minecraft-data for a particular mc version
Defined in:
rosegold/world/mcdata.crConstant Summary
-
DEFAULT =
MC12111 -
DEPRECATED Use MCData.default instead for version-aware data
-
MC12111 =
Rosegold::MCData.new("1.21.11") -
MC1218 =
Rosegold::MCData.new("1.21.8") -
PROTOCOL_VERSION_MAP =
{772_u32 => MC1218, 774_u32 => MC12111} -
SUPPORTED_VERSIONS =
["1.21.8", "1.21.11"]
Constructors
Instance Method Summary
-
#air_states : Set(UInt16)
Set of block state IDs that are air (air, cave_air, void_air)
-
#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
-
#block_state_names : Array(String)
block state nr -> "oak_slab[type=top, waterlogged=true]"
- #blocks : Array(Block)
- #enchantments : Array(Enchantment)
- #items : Array(Item)
- #materials : Material
Constructor Detail
Instance Method Detail
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