pub trait DataRegistry:
AzaleaRead
+ AzaleaWrite
+ PartialEq
+ PartialOrd
+ Ord
+ Copy
+ Hash {
type Key: DataRegistryKey;
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 Associated Types§
type Key: DataRegistryKey
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.