Skip to main content

Module entity_metadata

Module entity_metadata 

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

BlockCrumbleParticleData
Payload of minecraft:block_crumble.
BlockMarkerParticleData
Payload of minecraft:block_marker.
BlockParticleData
Payload of minecraft:block.
BlockStateId
An ID in the minecraft:block_state registry.
BlockVibrationSource
Block position payload of the minecraft:block vibration source.
CatSoundVariantId
An ID in the minecraft:cat_sound_variant registry.
CatVariantId
An ID in the minecraft:cat_variant registry.
ChickenSoundVariantId
An ID in the minecraft:chicken_sound_variant registry.
ChickenVariantId
An ID in the minecraft:chicken_variant registry.
CowSoundVariantId
An ID in the minecraft:cow_sound_variant registry.
CowVariantId
An ID in the minecraft:cow_variant registry.
DragonBreathParticleData
Payload of minecraft:dragon_breath.
DuplicateEntityMetadataIndex
Error returned when an entity metadata sequence repeats an index.
DustColorTransitionParticleData
Payload of minecraft:dust_color_transition.
DustParticleData
Payload of minecraft:dust.
DustPillarParticleData
Payload of minecraft:dust_pillar.
EffectParticleData
Payload of minecraft:effect.
EntityEffectParticleData
Payload of minecraft:entity_effect.
EntityMetadata
A complete 0xff-terminated entity metadata sequence.
EntityMetadataEntry
One index and one type-safe value in an entity metadata sequence.
EntityMetadataIndex
A valid entity metadata index in the inclusive range 0..=254.
EntityVibrationSource
Entity payload of the minecraft:entity vibration source.
FallingDustParticleData
Payload of minecraft:falling_dust.
FlashParticleData
Payload of minecraft:flash.
FrogVariantId
An ID in the minecraft:frog_variant registry.
GeyserBaseParticleData
Payload of minecraft:geyser_base.
GeyserParticleData
Payload of minecraft:geyser.
GeyserPlumeParticleData
Payload of minecraft:geyser_plume.
GeyserPoofParticleData
Payload of minecraft:geyser_poof.
InstantEffectParticleData
Payload of minecraft:instant_effect.
InvalidEntityMetadataIndex
Error returned when 0xff is used as an entity metadata entry index.
InvalidOptionalVarIntValue
Error returned for an Optional VarInt value with no unambiguous wire form.
InvalidRegistryIdValue
Error returned when a numeric registry ID does not fit a non-negative VarInt.
ItemParticleData
Payload of minecraft:item.
NonAirBlockStateId
A non-air block state usable in the Optional Block State encoding.
OptionalGlobalPosition
A Boolean-prefixed optional dimension and block position.
OptionalLivingEntityReference
A Boolean-prefixed optional living-entity UUID reference.
OptionalPosition
A Boolean-prefixed optional packed block position.
OptionalTextComponent
A Boolean-prefixed optional text component.
OptionalVarInt
An optional VarInt encoded as zero for absence and value + 1 for presence.
Particles
A VarInt-length-prefixed list of complete particle definitions.
PigSoundVariantId
An ID in the minecraft:pig_sound_variant registry.
PigVariantId
An ID in the minecraft:pig_variant registry.
Quaternion
A quaternion encoded as x, y, z, and w Floats.
Rotations
Three Euler rotation components encoded as consecutive Floats.
SculkChargeParticleData
Payload of minecraft:sculk_charge.
ShriekParticleData
Payload of minecraft:shriek.
TintedLeavesParticleData
Payload of minecraft:tinted_leaves.
TrailParticleData
Payload of minecraft:trail.
Vector3
A three-dimensional vector encoded as consecutive Floats.
VibrationParticleData
Payload of minecraft:vibration.
VillagerData
Villager biome type, profession, and level metadata.
WolfSoundVariantId
An ID in the minecraft:wolf_sound_variant registry.
WolfVariantId
An ID in the minecraft:wolf_variant registry.
ZombieNautilusVariantId
An ID in the minecraft:zombie_nautilus_variant registry.

Enums§

ArmadilloState
State used by armadillo entities.
CopperGolemState
State used by copper golem entities.
Direction
The six block-face directions used by entity metadata.
EntityMetadataValue
A metadata type ID bound to exactly the payload required by that type.
EntityMetadataValueType
Numeric value-type selector used by an entity metadata entry.
HumanoidArm
Dominant humanoid arm.
InvalidNonAirBlockStateId
Error returned when constructing a block-state reference that cannot be air.
OptionalBlockState
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.
SnifferState
State used by sniffer entities.
VibrationSource
Position source selected by a vibration particle’s registry type ID.
VillagerProfession
A built-in villager profession.
VillagerType
A built-in villager biome type.
WeatheringCopperState
Weathering stage for copper golem metadata.