Trait DataRegistry

Source
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§

Source

const NAME: &'static str

Required Methods§

Source

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.

Implementors§

Source§

impl DataRegistry for DimensionType

Source§

const NAME: &'static str = "dimension_type"

Source§

impl DataRegistry for Enchantment

Source§

const NAME: &'static str = "enchantment"