Skip to main content

BuiltinRegistry

Trait BuiltinRegistry 

Source
pub trait BuiltinRegistry:
    AzBuf
    + PartialEq
    + PartialOrd
    + Ord
    + Clone
    + Hash
    + Into<Identifier>
    + TryFrom<Identifier>
    + Clone {
    const NAME: &'static str;

    // Required methods
    fn builtin_from_id(id: u32) -> Option<Self>;
    fn builtin_into_id(&self) -> u32;
}

Required Associated Constants§

Source

const NAME: &'static str

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl BuiltinRegistry for Activity

Source§

const NAME: &'static str = "minecraft:activity"

Source§

impl BuiltinRegistry for Attribute

Source§

const NAME: &'static str = "minecraft:attribute"

Source§

impl BuiltinRegistry for AttributeKind

Source§

const NAME: &'static str = "minecraft:attribute_type"

Source§

impl BuiltinRegistry for AxolotlVariantKind

Source§

const NAME: &'static str = "axolotl/variant"

Source§

impl BuiltinRegistry for BlockEntityKind

Source§

const NAME: &'static str = "minecraft:block_entity_type"

Source§

impl BuiltinRegistry for BlockKind

Source§

const NAME: &'static str = "minecraft:block"

Source§

impl BuiltinRegistry for BlockPredicateKind

Source§

const NAME: &'static str = "minecraft:block_predicate_type"

Source§

impl BuiltinRegistry for ChunkStatus

Source§

const NAME: &'static str = "minecraft:chunk_status"

Source§

impl BuiltinRegistry for CommandArgumentKind

Source§

const NAME: &'static str = "minecraft:command_argument_type"

Source§

impl BuiltinRegistry for ConsumeEffectKind

Source§

const NAME: &'static str = "minecraft:consume_effect_type"

Source§

impl BuiltinRegistry for ContextFloatProviderKind

Source§

const NAME: &'static str = "minecraft:context_float_provider_type"

Source§

impl BuiltinRegistry for ContextIntProviderKind

Source§

const NAME: &'static str = "minecraft:context_int_provider_type"

Source§

impl BuiltinRegistry for ContextKeySet

Source§

const NAME: &'static str = "minecraft:context_key_set"

Source§

impl BuiltinRegistry for CreativeModeTab

Source§

const NAME: &'static str = "minecraft:creative_mode_tab"

Source§

impl BuiltinRegistry for CustomStat

Source§

const NAME: &'static str = "minecraft:custom_stat"

Source§

impl BuiltinRegistry for DataComponentKind

Source§

const NAME: &'static str = "minecraft:data_component_type"

Source§

impl BuiltinRegistry for DataComponentPredicateKind

Source§

const NAME: &'static str = "minecraft:data_component_predicate_type"

Source§

impl BuiltinRegistry for DebugSubscription

Source§

const NAME: &'static str = "minecraft:debug_subscription"

Source§

impl BuiltinRegistry for DialogActionKind

Source§

const NAME: &'static str = "minecraft:dialog_action_type"

Source§

impl BuiltinRegistry for DialogBodyKind

Source§

const NAME: &'static str = "minecraft:dialog_body_type"

Source§

impl BuiltinRegistry for DialogKind

Source§

const NAME: &'static str = "minecraft:dialog_type"

Source§

impl BuiltinRegistry for EnchantmentEffectComponentKind

Source§

const NAME: &'static str = "minecraft:enchantment_effect_component_type"

Source§

impl BuiltinRegistry for EnchantmentEntityEffectKind

Source§

const NAME: &'static str = "minecraft:enchantment_entity_effect_type"

Source§

impl BuiltinRegistry for EnchantmentLevelBasedValueKind

Source§

const NAME: &'static str = "minecraft:enchantment_level_based_value_type"

Source§

impl BuiltinRegistry for EnchantmentLocationBasedEffectKind

Source§

const NAME: &'static str = "minecraft:enchantment_location_based_effect_type"

Source§

impl BuiltinRegistry for EnchantmentProviderKind

Source§

const NAME: &'static str = "minecraft:enchantment_provider_type"

Source§

impl BuiltinRegistry for EnchantmentValueEffectKind

Source§

const NAME: &'static str = "minecraft:enchantment_value_effect_type"

Source§

impl BuiltinRegistry for EntityKind

Source§

const NAME: &'static str = "minecraft:entity_type"

Source§

impl BuiltinRegistry for EntitySubPredicateKind

Source§

const NAME: &'static str = "minecraft:entity_sub_predicate_type"

Source§

impl BuiltinRegistry for EnvironmentAttribute

Source§

const NAME: &'static str = "minecraft:environment_attribute"

Source§

impl BuiltinRegistry for FloatProviderKind

Source§

const NAME: &'static str = "minecraft:float_provider_type"

Source§

impl BuiltinRegistry for Fluid

Source§

const NAME: &'static str = "minecraft:fluid"

Source§

impl BuiltinRegistry for FoxVariantKind

Source§

const NAME: &'static str = "fox/variant"

Source§

impl BuiltinRegistry for GameEvent

Source§

const NAME: &'static str = "minecraft:game_event"

Source§

impl BuiltinRegistry for GameRule

Source§

const NAME: &'static str = "minecraft:game_rule"

Source§

impl BuiltinRegistry for HeightProviderKind

Source§

const NAME: &'static str = "minecraft:height_provider_type"

Source§

impl BuiltinRegistry for HorseVariantKind

Source§

const NAME: &'static str = "horse/variant"

Source§

impl BuiltinRegistry for IncomingRpcMethods

Source§

const NAME: &'static str = "minecraft:incoming_rpc_methods"

Source§

impl BuiltinRegistry for InputControlKind

Source§

const NAME: &'static str = "minecraft:input_control_type"

Source§

impl BuiltinRegistry for IntProviderKind

Source§

const NAME: &'static str = "minecraft:int_provider_type"

Source§

impl BuiltinRegistry for ItemKind

Source§

const NAME: &'static str = "minecraft:item"

Source§

impl BuiltinRegistry for LlamaVariantKind

Source§

const NAME: &'static str = "llama/variant"

Source§

impl BuiltinRegistry for LootConditionKind

Source§

const NAME: &'static str = "minecraft:loot_condition_type"

Source§

impl BuiltinRegistry for LootFunctionKind

Source§

const NAME: &'static str = "minecraft:loot_function_type"

Source§

impl BuiltinRegistry for LootNbtProviderKind

Source§

const NAME: &'static str = "minecraft:loot_nbt_provider_type"

Source§

impl BuiltinRegistry for LootPoolEntryKind

Source§

const NAME: &'static str = "minecraft:loot_pool_entry_type"

Source§

impl BuiltinRegistry for LootScoreProviderKind

Source§

const NAME: &'static str = "minecraft:loot_score_provider_type"

Source§

impl BuiltinRegistry for MapDecorationKind

Source§

const NAME: &'static str = "minecraft:map_decoration_type"

Source§

impl BuiltinRegistry for MemoryModuleKind

Source§

const NAME: &'static str = "minecraft:memory_module_type"

Source§

impl BuiltinRegistry for MenuKind

Source§

const NAME: &'static str = "minecraft:menu"

Source§

impl BuiltinRegistry for MobEffect

Source§

const NAME: &'static str = "minecraft:mob_effect"

Source§

impl BuiltinRegistry for MooshroomVariantKind

Source§

const NAME: &'static str = "mooshroom/variant"

Source§

impl BuiltinRegistry for NumberFormatKind

Source§

const NAME: &'static str = "minecraft:number_format_type"

Source§

impl BuiltinRegistry for OutgoingRpcMethods

Source§

const NAME: &'static str = "minecraft:outgoing_rpc_methods"

Source§

impl BuiltinRegistry for ParrotVariantKind

Source§

const NAME: &'static str = "parrot/variant"

Source§

impl BuiltinRegistry for ParticleKind

Source§

const NAME: &'static str = "minecraft:particle_type"

Source§

impl BuiltinRegistry for PermissionCheckKind

Source§

const NAME: &'static str = "minecraft:permission_check_type"

Source§

impl BuiltinRegistry for PermissionKind

Source§

const NAME: &'static str = "minecraft:permission_type"

Source§

impl BuiltinRegistry for PointOfInterestKind

Source§

const NAME: &'static str = "minecraft:point_of_interest_type"

Source§

impl BuiltinRegistry for PosRuleTest

Source§

const NAME: &'static str = "minecraft:pos_rule_test"

Source§

impl BuiltinRegistry for PositionSourceKind

Source§

const NAME: &'static str = "minecraft:position_source_type"

Source§

impl BuiltinRegistry for Potion

Source§

const NAME: &'static str = "minecraft:potion"

Source§

impl BuiltinRegistry for RabbitVariantKind

Source§

const NAME: &'static str = "rabbit/variant"

Source§

impl BuiltinRegistry for RecipeBookCategory

Source§

const NAME: &'static str = "minecraft:recipe_book_category"

Source§

impl BuiltinRegistry for RecipeDisplay

Source§

const NAME: &'static str = "minecraft:recipe_display"

Source§

impl BuiltinRegistry for RecipeKind

Source§

const NAME: &'static str = "minecraft:recipe_type"

Source§

impl BuiltinRegistry for RecipeSerializer

Source§

const NAME: &'static str = "minecraft:recipe_serializer"

Source§

impl BuiltinRegistry for RuleBlockEntityModifier

Source§

const NAME: &'static str = "minecraft:rule_block_entity_modifier"

Source§

impl BuiltinRegistry for RuleTest

Source§

const NAME: &'static str = "minecraft:rule_test"

Source§

impl BuiltinRegistry for SensorKind

Source§

const NAME: &'static str = "minecraft:sensor_type"

Source§

impl BuiltinRegistry for SlotDisplay

Source§

const NAME: &'static str = "minecraft:slot_display"

Source§

impl BuiltinRegistry for SlotSourceKind

Source§

const NAME: &'static str = "minecraft:slot_source_type"

Source§

impl BuiltinRegistry for SoundEvent

Source§

const NAME: &'static str = "minecraft:sound_event"

Source§

impl BuiltinRegistry for SpawnConditionKind

Source§

const NAME: &'static str = "minecraft:spawn_condition_type"

Source§

impl BuiltinRegistry for StatKind

Source§

const NAME: &'static str = "minecraft:stat_type"

Source§

impl BuiltinRegistry for TestEnvironmentDefinitionKind

Source§

const NAME: &'static str = "minecraft:test_environment_definition_type"

Source§

impl BuiltinRegistry for TestFunction

Source§

const NAME: &'static str = "minecraft:test_function"

Source§

impl BuiltinRegistry for TestInstanceKind

Source§

const NAME: &'static str = "minecraft:test_instance_type"

Source§

impl BuiltinRegistry for TicketKind

Source§

const NAME: &'static str = "minecraft:ticket_type"

Source§

impl BuiltinRegistry for TriggerKind

Source§

const NAME: &'static str = "minecraft:trigger_type"

Source§

impl BuiltinRegistry for VillagerKind

Source§

const NAME: &'static str = "minecraft:villager_type"

Source§

impl BuiltinRegistry for VillagerProfession

Source§

const NAME: &'static str = "minecraft:villager_profession"

Source§

impl BuiltinRegistry for WorldgenBiomeSource

Source§

const NAME: &'static str = "minecraft:worldgen/biome_source"

Source§

impl BuiltinRegistry for WorldgenBlockStateProviderKind

Source§

const NAME: &'static str = "minecraft:worldgen/block_state_provider_type"

Source§

impl BuiltinRegistry for WorldgenCarverKind

Source§

const NAME: &'static str = "minecraft:worldgen/carver_type"

Source§

impl BuiltinRegistry for WorldgenChunkGenerator

Source§

const NAME: &'static str = "minecraft:worldgen/chunk_generator"

Source§

impl BuiltinRegistry for WorldgenDensityFunctionKind

Source§

const NAME: &'static str = "minecraft:worldgen/density_function_type"

Source§

impl BuiltinRegistry for WorldgenFeatureKind

Source§

const NAME: &'static str = "minecraft:worldgen/feature_type"

Source§

impl BuiltinRegistry for WorldgenFeatureSizeKind

Source§

const NAME: &'static str = "minecraft:worldgen/feature_size_type"

Source§

impl BuiltinRegistry for WorldgenFoliagePlacerKind

Source§

const NAME: &'static str = "minecraft:worldgen/foliage_placer_type"

Source§

impl BuiltinRegistry for WorldgenMaterialConditionKind

Source§

const NAME: &'static str = "minecraft:worldgen/material_condition_type"

Source§

impl BuiltinRegistry for WorldgenMaterialRuleKind

Source§

const NAME: &'static str = "minecraft:worldgen/material_rule_type"

Source§

impl BuiltinRegistry for WorldgenPlacementModifierKind

Source§

const NAME: &'static str = "minecraft:worldgen/placement_modifier_type"

Source§

impl BuiltinRegistry for WorldgenPoolAliasBinding

Source§

const NAME: &'static str = "minecraft:worldgen/pool_alias_binding"

Source§

impl BuiltinRegistry for WorldgenRootPlacerKind

Source§

const NAME: &'static str = "minecraft:worldgen/root_placer_type"

Source§

impl BuiltinRegistry for WorldgenStructureKind

Source§

const NAME: &'static str = "minecraft:worldgen/structure_type"

Source§

impl BuiltinRegistry for WorldgenStructurePiece

Source§

const NAME: &'static str = "minecraft:worldgen/structure_piece"

Source§

impl BuiltinRegistry for WorldgenStructurePlacement

Source§

const NAME: &'static str = "minecraft:worldgen/structure_placement"

Source§

impl BuiltinRegistry for WorldgenStructurePoolElement

Source§

const NAME: &'static str = "minecraft:worldgen/structure_pool_element"

Source§

impl BuiltinRegistry for WorldgenStructureProcessor

Source§

const NAME: &'static str = "minecraft:worldgen/structure_processor"

Source§

impl BuiltinRegistry for WorldgenTreeDecoratorKind

Source§

const NAME: &'static str = "minecraft:worldgen/tree_decorator_type"

Source§

impl BuiltinRegistry for WorldgenTrunkPlacerKind

Source§

const NAME: &'static str = "minecraft:worldgen/trunk_placer_type"