ghast-inventory 0.5.2

Inventory and container windows for the ghast Minecraft Java Edition client library: vanilla client-side click prediction, the window confirm protocol, hashed 26.1 clicks and lazy NBT / data-component item stacks (1.8.9, 1.12.2, 1.16.5, 26.1, 26.2 and 26.3)
Documentation
// @generated by `cargo run -p ghast-inventory --example gen_enchantments_26_1` from the
// enchantment `registry_data` of the oracle's 26.1 click vectors. Do not edit.

/// Vanilla enchantments: name, max level, anvil cost, supported items, exclusive set,
/// trident spin attack strength (text form of `ench_value::Fx`); strings are spans of
/// [`ENCHANTMENT_TEXT`].
pub(super) static ENCHANTMENTS: [(Span, i32, i32, Span, Span, Span); 43] = [
    ((0, 23), 1, 4, (23, 33), (56, 0), (56, 0)),
    ((56, 28), 5, 2, (84, 29), (113, 31), (56, 0)),
    ((144, 23), 1, 8, (167, 33), (56, 0), (56, 0)),
    ((200, 26), 4, 4, (226, 28), (254, 30), (56, 0)),
    ((284, 16), 4, 4, (300, 27), (113, 31), (56, 0)),
    ((327, 20), 1, 8, (347, 30), (56, 0), (56, 0)),
    ((377, 17), 5, 2, (300, 27), (113, 31), (56, 0)),
    ((394, 23), 3, 4, (417, 33), (450, 30), (56, 0)),
    ((480, 20), 5, 1, (500, 29), (56, 0), (56, 0)),
    ((529, 25), 4, 2, (417, 33), (56, 0), (56, 0)),
    ((554, 21), 2, 4, (575, 34), (56, 0), (56, 0)),
    ((609, 25), 4, 2, (226, 28), (254, 30), (56, 0)),
    ((634, 15), 1, 4, (649, 26), (56, 0), (56, 0)),
    ((675, 17), 3, 4, (692, 34), (726, 31), (56, 0)),
    ((757, 22), 2, 4, (417, 33), (450, 30), (56, 0)),
    ((779, 18), 5, 4, (347, 30), (113, 31), (56, 0)),
    ((797, 18), 1, 8, (649, 26), (815, 28), (56, 0)),
    ((843, 19), 2, 2, (862, 35), (56, 0), (56, 0)),
    ((897, 17), 3, 4, (862, 35), (56, 0), (56, 0)),
    ((914, 17), 3, 2, (347, 30), (56, 0), (56, 0)),
    ((931, 25), 3, 4, (956, 30), (56, 0), (56, 0)),
    ((986, 15), 3, 2, (1001, 28), (56, 0), (56, 0)),
    ((1029, 14), 3, 4, (956, 30), (56, 0), (56, 0)),
    ((1043, 17), 1, 4, (1060, 33), (56, 0), (56, 0)),
    ((1093, 19), 1, 4, (1112, 31), (1143, 33), (56, 0)),
    ((1176, 18), 4, 1, (1112, 31), (1143, 33), (56, 0)),
    ((1194, 15), 5, 1, (649, 26), (56, 0), (56, 0)),
    ((1209, 31), 4, 2, (226, 28), (254, 30), (56, 0)),
    ((1240, 20), 4, 1, (226, 28), (254, 30), (56, 0)),
    ((1260, 15), 2, 4, (649, 26), (56, 0), (56, 0)),
    ((1275, 22), 3, 2, (1112, 31), (56, 0), (56, 0)),
    ((1297, 21), 3, 4, (23, 33), (56, 0), (56, 0)),
    ((1318, 17), 3, 4, (347, 30), (1335, 32), (1367, 21)),
    ((1388, 19), 5, 1, (1407, 35), (113, 31), (56, 0)),
    ((1442, 20), 1, 8, (692, 34), (726, 31), (56, 0)),
    ((1462, 15), 5, 2, (84, 29), (113, 31), (56, 0)),
    ((1477, 20), 3, 8, (417, 33), (56, 0), (56, 0)),
    ((1497, 23), 3, 4, (1520, 31), (56, 0), (56, 0)),
    ((1551, 21), 3, 8, (1572, 32), (56, 0), (56, 0)),
    ((1604, 16), 3, 8, (226, 28), (56, 0), (56, 0)),
    ((1620, 20), 3, 2, (1060, 33), (56, 0), (56, 0)),
    ((1640, 25), 1, 8, (1665, 32), (56, 0), (56, 0)),
    ((1697, 20), 3, 4, (300, 27), (56, 0), (56, 0)),
];

/// The strings of [`ENCHANTMENTS`].
pub(super) const ENCHANTMENT_TEXT: &str = "minecraft:aqua_affinity#minecraft:enchantable/head_armorminecraft:bane_of_arthropods#minecraft:enchantable/weapon#minecraft:exclusive_set/damageminecraft:binding_curse#minecraft:enchantable/equippableminecraft:blast_protection#minecraft:enchantable/armor#minecraft:exclusive_set/armorminecraft:breach#minecraft:enchantable/maceminecraft:channeling#minecraft:enchantable/tridentminecraft:densityminecraft:depth_strider#minecraft:enchantable/foot_armor#minecraft:exclusive_set/bootsminecraft:efficiency#minecraft:enchantable/miningminecraft:feather_fallingminecraft:fire_aspect#minecraft:enchantable/fire_aspectminecraft:fire_protectionminecraft:flame#minecraft:enchantable/bowminecraft:fortune#minecraft:enchantable/mining_loot#minecraft:exclusive_set/miningminecraft:frost_walkerminecraft:impalingminecraft:infinity#minecraft:exclusive_set/bowminecraft:knockback#minecraft:enchantable/melee_weaponminecraft:lootingminecraft:loyaltyminecraft:luck_of_the_sea#minecraft:enchantable/fishingminecraft:lunge#minecraft:enchantable/lungeminecraft:lureminecraft:mending#minecraft:enchantable/durabilityminecraft:multishot#minecraft:enchantable/crossbow#minecraft:exclusive_set/crossbowminecraft:piercingminecraft:powerminecraft:projectile_protectionminecraft:protectionminecraft:punchminecraft:quick_chargeminecraft:respirationminecraft:riptide#minecraft:exclusive_set/riptideadd(linear(1.5,0.75))minecraft:sharpness#minecraft:enchantable/sharp_weaponminecraft:silk_touchminecraft:smiteminecraft:soul_speedminecraft:sweeping_edge#minecraft:enchantable/sweepingminecraft:swift_sneak#minecraft:enchantable/leg_armorminecraft:thornsminecraft:unbreakingminecraft:vanishing_curse#minecraft:enchantable/vanishingminecraft:wind_burst";