pub(crate) use ghast_data::v26_1 as data;
pub(crate) use ghast_entity::v26_1 as entity;
pub(crate) use ghast_inventory::v26_1 as inv;
pub(crate) use ghast_physics::modern::V26_1 as Rules;
pub(crate) use ghast_physics::modern::piston::v26_1 as pistons;
pub(crate) use ghast_physics::modern::{collides_26_1 as collides, push_kind_26_1 as push_kind};
pub(crate) use ghast_physics::pick::v26_1 as pick;
pub(crate) use ghast_protocol::v26_1 as proto;
pub(crate) use ghast_world::v26_1 as world;
use crate::version::GameVersion;
pub(crate) const GAME: GameVersion = GameVersion::V26_1;
pub(crate) const TEAM_LAYOUT: super::teams::TeamLayout =
super::teams::TeamLayout::RuleBeforeAffixes;
pub(crate) mod meta {
pub(crate) const SHARED_FLAGS: u8 = 0;
pub(crate) const LIVING_FLAGS: u8 = 8;
pub(crate) const ATTACHED_TO_TARGET: u8 = 9;
pub(crate) const PLAYER_MAIN_HAND: u8 = 15;
pub(crate) const BABY: u8 = 16;
pub(crate) const MOUNT_FLAGS: u8 = 18;
}
pub(crate) mod effects {
pub(crate) const JUMP_BOOST: i8 = 8;
pub(crate) const BLINDNESS: i8 = 15;
pub(crate) const LEVITATION: i8 = 25;
pub(crate) const SLOW_FALLING: i8 = 28;
pub(crate) const CONDUIT_POWER: i8 = 29;
pub(crate) const DOLPHINS_GRACE: i8 = 30;
pub(crate) const WEAVING: i8 = 37;
}
#[allow(clippy::duplicate_mod)]
#[path = "modern.rs"]
mod imp;
pub(crate) use imp::{ModernSim as Sim26, dig_progress, held_item_facts};
pub(crate) fn exact_dig(m: crate::hands::ModernDig) -> crate::hands::ExactDig {
crate::hands::ExactDig::V26_1(m)
}
pub(crate) fn inv_trident_strength(
inv: &mut ghast_inventory::Inventory,
s: &ghast_inventory::Stack,
) -> Option<f32> {
inv.trident_spin_attack_strength_26_1(s)
}
#[cfg(test)]
mod tests {
#[test]
fn entity_ids_by_name() {
let ids = super::imp::entity_ids_for_test();
assert_eq!(ids.0, [66, 36, 87, 116, 151, 19, 20]);
assert_eq!(ids.1, [78, 134]);
assert_eq!(ids.2, [88, 152]);
assert_eq!(ids.3, 53);
}
}