Trait DataRegistry

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

Source

const NAME: &'static str

Required Methods§

Source

fn protocol_id(&self) -> u32

Source

fn new_raw(id: u32) -> Self

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 CatVariant

Source§

const NAME: &'static str = "cat_variant"

Source§

impl DataRegistry for ChickenVariant

Source§

const NAME: &'static str = "chicken_variant"

Source§

impl DataRegistry for CowVariant

Source§

const NAME: &'static str = "cow_variant"

Source§

impl DataRegistry for DamageKind

Source§

const NAME: &'static str = "damage_kind"

Source§

impl DataRegistry for DimensionType

Source§

const NAME: &'static str = "dimension_type"

Source§

impl DataRegistry for Enchantment

Source§

const NAME: &'static str = "enchantment"

Source§

impl DataRegistry for FrogVariant

Source§

const NAME: &'static str = "frog_variant"

Source§

impl DataRegistry for PaintingVariant

Source§

const NAME: &'static str = "painting_variant"

Source§

impl DataRegistry for PigVariant

Source§

const NAME: &'static str = "pig_variant"

Source§

impl DataRegistry for WolfSoundVariant

Source§

const NAME: &'static str = "wolf_sound_variant"

Source§

impl DataRegistry for WolfVariant

Source§

const NAME: &'static str = "wolf_variant"