Expand description
§Sculk
sculk
is a crate for working with Minecraft data.
Such as block entities, player inventories, entities and more.
§Examples
use sculk::BlockEntity;
use sculk::BlockEntityVariant;
let bytes = include_bytes!("structure_block.nbt");
let block_entity: BlockEntity = BlockEntity::from_bytes(bytes).unwrap();
assert_eq!(block_entity.variant(), BlockEntityVariant::StructureBlock);
Modules§
Constants§
- MC_
VERSION - The version of Minecraft that this library is designed to work with.
Formatted exactly as minecraft versions are.