You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
minecraft-regions-tool/src/constants.rs

34 lines
1.2 KiB
Rust

/// NBT tag constants
pub mod tags {
pub const TAG_LEVEL: &str = "Level";
pub const TAG_X_POS: &str = "xPos";
pub const TAG_Z_POS: &str = "zPos";
pub const TAG_SECTIONS: &str = "Sections";
pub const TAG_LAST_UPDATE: &str = "LastUpdate";
pub const TAG_INHABITED_TIME: &str = "InhabitedTime";
pub const TAG_HEIGHTMAPS: &str = "Heightmaps";
pub const TAG_CARVING_MASKS: &str = "CarvingMasks";
pub const TAG_ENTITIES: &str = "Entities";
pub const TAG_TILE_ENTITIES: &str = "TileEntities";
pub const TAG_TILE_TICKS: &str = "TileTicks";
pub const TAG_LIQUID_TICKS: &str = "LiquidTicks";
pub const TAG_LIGHTS: &str = "Lights";
pub const TAG_LIQUIDS_TO_BE_TICKED: &str = "LiquidsToBeTicked";
pub const TAG_TO_BE_TICKED: &str = "ToBeTicked";
pub const TAG_POST_PROCESSING: &str = "PostProcessing";
pub const TAG_STATUS: &str = "Status";
pub const TAG_STRUCTURES: &str = "Structures";
/// A list of required tags stored in the level tag
pub const LEVEL_TAGS: &[&'static str] = &[
TAG_X_POS,
TAG_Z_POS,
TAG_SECTIONS,
TAG_LAST_UPDATE,
TAG_INHABITED_TIME,
TAG_ENTITIES,
TAG_TILE_ENTITIES,
TAG_STATUS,
];
}