Expand description
Type-safe entity metadata and particle protocol structures.
The implementation follows the current Java Edition Entity Metadata
Format. Submodules live in entity_metadata/; this file is the module
root so no entity_metadata/mod.rs is used.
Structs§
- Block
Crumble Particle Data - Payload of
minecraft:block_crumble. - Block
Marker Particle Data - Payload of
minecraft:block_marker. - Block
Particle Data - Payload of
minecraft:block. - Block
State Id - An ID in the
minecraft:block_stateregistry. - Block
Vibration Source - Block position payload of the
minecraft:blockvibration source. - CatSound
Variant Id - An ID in the
minecraft:cat_sound_variantregistry. - CatVariant
Id - An ID in the
minecraft:cat_variantregistry. - Chicken
Sound Variant Id - An ID in the
minecraft:chicken_sound_variantregistry. - Chicken
Variant Id - An ID in the
minecraft:chicken_variantregistry. - CowSound
Variant Id - An ID in the
minecraft:cow_sound_variantregistry. - CowVariant
Id - An ID in the
minecraft:cow_variantregistry. - Dragon
Breath Particle Data - Payload of
minecraft:dragon_breath. - Duplicate
Entity Metadata Index - Error returned when an entity metadata sequence repeats an index.
- Dust
Color Transition Particle Data - Payload of
minecraft:dust_color_transition. - Dust
Particle Data - Payload of
minecraft:dust. - Dust
Pillar Particle Data - Payload of
minecraft:dust_pillar. - Effect
Particle Data - Payload of
minecraft:effect. - Entity
Effect Particle Data - Payload of
minecraft:entity_effect. - Entity
Metadata - A complete
0xff-terminated entity metadata sequence. - Entity
Metadata Entry - One index and one type-safe value in an entity metadata sequence.
- Entity
Metadata Index - A valid entity metadata index in the inclusive range
0..=254. - Entity
Vibration Source - Entity payload of the
minecraft:entityvibration source. - Falling
Dust Particle Data - Payload of
minecraft:falling_dust. - Flash
Particle Data - Payload of
minecraft:flash. - Frog
Variant Id - An ID in the
minecraft:frog_variantregistry. - Geyser
Base Particle Data - Payload of
minecraft:geyser_base. - Geyser
Particle Data - Payload of
minecraft:geyser. - Geyser
Plume Particle Data - Payload of
minecraft:geyser_plume. - Geyser
Poof Particle Data - Payload of
minecraft:geyser_poof. - Instant
Effect Particle Data - Payload of
minecraft:instant_effect. - Invalid
Entity Metadata Index - Error returned when
0xffis used as an entity metadata entry index. - Invalid
Optional VarInt Value - Error returned for an Optional VarInt value with no unambiguous wire form.
- Invalid
Registry IdValue - Error returned when a numeric registry ID does not fit a non-negative VarInt.
- Item
Particle Data - Payload of
minecraft:item. - NonAir
Block State Id - A non-air block state usable in the Optional Block State encoding.
- Optional
Global Position - A Boolean-prefixed optional dimension and block position.
- Optional
Living Entity Reference - A Boolean-prefixed optional living-entity UUID reference.
- Optional
Position - A Boolean-prefixed optional packed block position.
- Optional
Text Component - A Boolean-prefixed optional text component.
- Optional
VarInt - An optional VarInt encoded as zero for absence and
value + 1for presence. - Particles
- A VarInt-length-prefixed list of complete particle definitions.
- PigSound
Variant Id - An ID in the
minecraft:pig_sound_variantregistry. - PigVariant
Id - An ID in the
minecraft:pig_variantregistry. - Quaternion
- A quaternion encoded as x, y, z, and w Floats.
- Rotations
- Three Euler rotation components encoded as consecutive Floats.
- Sculk
Charge Particle Data - Payload of
minecraft:sculk_charge. - Shriek
Particle Data - Payload of
minecraft:shriek. - Tinted
Leaves Particle Data - Payload of
minecraft:tinted_leaves. - Trail
Particle Data - Payload of
minecraft:trail. - Vector3
- A three-dimensional vector encoded as consecutive Floats.
- Vibration
Particle Data - Payload of
minecraft:vibration. - Villager
Data - Villager biome type, profession, and level metadata.
- Wolf
Sound Variant Id - An ID in the
minecraft:wolf_sound_variantregistry. - Wolf
Variant Id - An ID in the
minecraft:wolf_variantregistry. - Zombie
Nautilus Variant Id - An ID in the
minecraft:zombie_nautilus_variantregistry.
Enums§
- Armadillo
State - State used by armadillo entities.
- Copper
Golem State - State used by copper golem entities.
- Direction
- The six block-face directions used by entity metadata.
- Entity
Metadata Value - A metadata type ID bound to exactly the payload required by that type.
- Entity
Metadata Value Type - Numeric value-type selector used by an entity metadata entry.
- Humanoid
Arm - Dominant humanoid arm.
- Invalid
NonAir Block State Id - Error returned when constructing a block-state reference that cannot be air.
- Optional
Block State - A block state encoded with zero reserved for absence.
- Particle
- A particle type ID bound to exactly the payload required by that type.
- Pose
- An entity pose from the metadata Pose value type.
- Sniffer
State - State used by sniffer entities.
- Vibration
Source - Position source selected by a vibration particle’s registry type ID.
- Villager
Profession - A built-in villager profession.
- Villager
Type - A built-in villager biome type.
- Weathering
Copper State - Weathering stage for copper golem metadata.