#![forbid(unsafe_code)]
#![warn(missing_docs, unnameable_types)]
#![cfg_attr(
not(all(
feature = "v1_8",
feature = "v1_12",
feature = "v1_16_5",
feature = "v26_1",
feature = "v26_2"
)),
allow(dead_code)
)]
#![cfg_attr(
not(any(
feature = "v1_8",
feature = "v1_12",
feature = "v1_16_5",
feature = "v26_1",
feature = "v26_2"
)),
allow(unused_imports, unused_variables)
)]
#[cfg(feature = "v1_16_5")]
mod client16;
mod common;
mod entity;
#[cfg(any(feature = "v26_1", feature = "v26_2"))]
mod modern_state;
mod store;
#[cfg(feature = "v1_12")]
pub mod v1_12;
#[cfg(feature = "v1_16_5")]
pub mod v1_16_5;
#[cfg(feature = "v1_8")]
pub mod v1_8;
#[cfg(feature = "v26_1")]
#[path = "."]
mod modern_775 {
pub(crate) use ghast_data::v26_1 as data;
use ghast_protocol::types::slot::v775::ItemStack;
pub(crate) use ghast_protocol::v26_1 as proto;
pub(crate) const ERA: crate::entity::Era = crate::entity::Era::V26;
pub(crate) const SCALE_ATTRIBUTE_ID: i32 = 25;
#[inline]
pub(crate) fn read_stack(
r: &mut ghast_protocol::Reader<'_>,
) -> crate::common::R<Option<ItemStack>> {
ItemStack::read(r)
}
#[path = "v26_1.rs"]
pub mod tracker;
}
#[cfg(feature = "v26_1")]
#[doc(inline)]
pub use modern_775::tracker as v26_1;
#[cfg(feature = "v26_2")]
#[path = "."]
mod modern_776 {
pub(crate) use ghast_data::v26_2 as data;
use ghast_protocol::types::slot::v775::ItemStack;
pub(crate) use ghast_protocol::v26_2 as proto;
pub(crate) const ERA: crate::entity::Era = crate::entity::Era::V26_2;
pub(crate) const SCALE_ATTRIBUTE_ID: i32 = 30;
#[inline]
pub(crate) fn read_stack(
r: &mut ghast_protocol::Reader<'_>,
) -> crate::common::R<Option<ItemStack>> {
ItemStack::read_776(r)
}
#[allow(clippy::duplicate_mod)]
#[path = "v26_1.rs"]
pub mod tracker;
}
#[cfg(feature = "v26_2")]
#[doc(inline)]
pub use modern_776::tracker as v26_2;
pub use entity::{
EQUIPMENT_SLOTS, Effect, Entity, EntityClass, EntityType, Item, MetaValue, Metadata,
};
pub use store::{Config, Entities, Event, PlayerInfo};
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Applied {
Changed,
Ignored,
NotEntityPacket,
}