pub trait DataRegistry: AzaleaRead + AzaleaWrite {
const NAME: &'static str;
// Required methods
fn protocol_id(&self) -> u32;
fn new_raw(id: u32) -> Self;
}
Expand description
A registry which has its values decided by the server in the
ClientboundRegistryData
packet.
These can be resolved into their actual values with
ResolvableDataRegistry
from azalea-core.
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.