Skip to main content

Registry

Trait Registry 

Source
pub trait Registry:
    AzBuf
    + Ord
    + Clone
    + Hash
    + Into<Identifier>
    + TryFrom<Identifier>
where Self: Sized,
{ const NAME: &'static str; // Required methods fn from_id(ctx: Ctx<'_>, id: u32) -> Result<Self, BufReadError>; fn to_id(&self, ctx: Ctx<'_>) -> Result<u32>; }

Required Associated Constants§

Source

const NAME: &'static str

Required Methods§

Source

fn from_id(ctx: Ctx<'_>, id: u32) -> Result<Self, BufReadError>

Source

fn to_id(&self, ctx: Ctx<'_>) -> Result<u32>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Registry for BannerPatternKind

Source§

const NAME: &'static str = "banner_pattern"

Source§

impl Registry for Biome

Source§

const NAME: &'static str = "worldgen/biome"

Source§

impl Registry for BlockTransformer

Source§

const NAME: &'static str = "block_transformer"

Source§

impl Registry for CatSoundVariant

Source§

const NAME: &'static str = "cat_sound_variant"

Source§

impl Registry for CatVariant

Source§

const NAME: &'static str = "cat_variant"

Source§

impl Registry for ChatKind

Source§

const NAME: &'static str = "chat_type"

Source§

impl Registry for ChickenSoundVariant

Source§

const NAME: &'static str = "chicken_sound_variant"

Source§

impl Registry for ChickenVariant

Source§

const NAME: &'static str = "chicken_variant"

Source§

impl Registry for CowSoundVariant

Source§

const NAME: &'static str = "cow_sound_variant"

Source§

impl Registry for CowVariant

Source§

const NAME: &'static str = "cow_variant"

Source§

impl Registry for DamageKind

Source§

const NAME: &'static str = "damage_type"

Source§

impl Registry for DecoratedPotPattern

Source§

const NAME: &'static str = "decorated_pot_pattern"

Source§

impl Registry for Dialog

Source§

const NAME: &'static str = "dialog"

Source§

impl Registry for DimensionKind

Source§

const NAME: &'static str = "dimension_type"

Source§

impl Registry for Enchantment

Source§

const NAME: &'static str = "enchantment"

Source§

impl Registry for EnchantmentProvider

Source§

const NAME: &'static str = "enchantment_provider"

Source§

impl Registry for FrogVariant

Source§

const NAME: &'static str = "frog_variant"

Source§

impl Registry for Instrument

Source§

const NAME: &'static str = "instrument"

Source§

impl Registry for JukeboxSong

Source§

const NAME: &'static str = "jukebox_song"

Source§

impl Registry for PaintingVariant

Source§

const NAME: &'static str = "painting_variant"

Source§

impl Registry for PigSoundVariant

Source§

const NAME: &'static str = "pig_sound_variant"

Source§

impl Registry for PigVariant

Source§

const NAME: &'static str = "pig_variant"

Source§

impl Registry for Recipe

Source§

const NAME: &'static str = "recipe"

Source§

impl Registry for SulfurCubeArchetype

Source§

const NAME: &'static str = "sulfur_cube_archetype"

Source§

impl Registry for TestEnvironment

Source§

const NAME: &'static str = "test_environment"

Source§

impl Registry for TestInstance

Source§

const NAME: &'static str = "test_instance"

Source§

impl Registry for Timeline

Source§

const NAME: &'static str = "timeline"

Source§

impl Registry for TrimMaterial

Source§

const NAME: &'static str = "trim_material"

Source§

impl Registry for TrimPattern

Source§

const NAME: &'static str = "trim_pattern"

Source§

impl Registry for WolfSoundVariant

Source§

const NAME: &'static str = "wolf_sound_variant"

Source§

impl Registry for WolfVariant

Source§

const NAME: &'static str = "wolf_variant"

Source§

impl Registry for WorldClock

Source§

const NAME: &'static str = "world_clock"

Source§

impl Registry for ZombieNautilusVariant

Source§

const NAME: &'static str = "zombie_nautilus_variant"

Source§

impl<T: BuiltinRegistry> Registry for T

Source§

const NAME: &'static str = T::NAME