Crate sculk

Source
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§

block_entities
block_entity
chunk
color
components
entity
error
item
level
map
player
rarity
traits
uuid

Constants§

MC_VERSION
The version of Minecraft that this library is designed to work with.
Formatted exactly as minecraft versions are.