pub trait DataRegistry {
const NAME: &'static str;
// Required method
fn protocol_id(&self) -> u32;
}
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§
fn protocol_id(&self) -> u32
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.