ghast-data 0.4.4

Static Minecraft Java Edition game data for the ghast client library: blocks, block states, collision shapes, items, entities, biomes, enchantments, foods (generated from PrismarineJS minecraft-data)
Documentation
//! Tool speed multipliers per dig material.
//!
//! @generated by `cargo run -p ghast-codegen-data` from PrismarineJS minecraft-data 3.119.0 — do not edit.
//! Sources: pc/1.16.2/materials.json.

#![allow(clippy::all, clippy::pedantic, clippy::nursery, missing_docs)]

use crate::common::DigMaterial;

/// `(material, (start, end) in TOOL_MULTIPLIER_LIST)`.
pub(crate) static TOOL_MULTIPLIERS: [(DigMaterial, (u16, u16)); 8] = [
    (DigMaterial::Dirt, (0, 6)),
    (DigMaterial::Leaves, (6, 13)),
    (DigMaterial::Melon, (13, 19)),
    (DigMaterial::Plant, (19, 31)),
    (DigMaterial::Rock, (31, 37)),
    (DigMaterial::Web, (37, 44)),
    (DigMaterial::Wood, (44, 50)),
    (DigMaterial::Wool, (50, 51)),
];
/// `(tool item id, multiplier)` of every material, material after material.
pub(crate) static TOOL_MULTIPLIER_LIST: [(u16, f32); 51] = [(584, 2.0), (589, 4.0), (594, 12.0), (599, 6.0), (604, 8.0), (609, 9.0), (583, 1.5), (588, 1.5), (593, 1.5), (598, 1.5), (603, 1.5), (608, 1.5), (734, 6.0), (583, 1.5), (588, 1.5), (593, 1.5), (598, 1.5), (603, 1.5), (608, 1.5), (583, 1.5), (586, 2.0), (588, 1.5), (591, 4.0), (593, 1.5), (596, 12.0), (598, 1.5), (601, 6.0), (603, 1.5), (606, 8.0), (608, 1.5), (611, 9.0), (585, 2.0), (590, 4.0), (595, 12.0), (600, 6.0), (605, 8.0), (610, 9.0), (583, 15.0), (588, 15.0), (593, 15.0), (598, 15.0), (603, 15.0), (608, 15.0), (734, 15.0), (586, 2.0), (591, 4.0), (596, 12.0), (601, 6.0), (606, 8.0), (611, 9.0), (734, 4.8)];