Enum NoteInstrument
#[non_exhaustive]pub enum NoteInstrument {
Show 27 variants
Harp,
Basedrum,
Snare,
Hat,
Bass,
Flute,
Bell,
Guitar,
Chime,
Xylophone,
IronXylophone,
CowBell,
Didgeridoo,
Bit,
Banjo,
Pling,
Trumpet,
TrumpetExposed,
TrumpetOxidized,
TrumpetWeathered,
Zombie,
Skeleton,
Creeper,
Dragon,
WitherSkeleton,
Piglin,
CustomHead,
}Expand description
A note block’s instrument (NoteBlockInstrument), for note_block_play,
in the instrument property’s order.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Harp
The harp, over most blocks.
Basedrum
The bass drum, over stone.
Snare
The snare drum, over sand and gravel.
Hat
The clicks, over glass.
Bass
The double bass, over wood.
Flute
The flute, over clay.
Bell
The bell, over a gold block.
Guitar
The guitar, over wool.
Chime
The chime, over packed ice.
Xylophone
The xylophone, over a bone block.
IronXylophone
The iron xylophone, over an iron block.
CowBell
The cow bell, over soul sand.
Didgeridoo
The didgeridoo, over a pumpkin.
Bit
The bit, over an emerald block.
Banjo
The banjo, over hay.
Pling
The pling, over glowstone.
Trumpet
The trumpet, over a copper block.
TrumpetExposed
The trumpet, over an exposed copper block.
TrumpetOxidized
The trumpet, over an oxidized copper block.
TrumpetWeathered
The trumpet, over a weathered copper block.
Zombie
A zombie’s sound, over a zombie head.
Skeleton
A skeleton’s sound, over a skeleton skull.
Creeper
A creeper’s sound, over a creeper head.
Dragon
The ender dragon’s sound, over a dragon head.
WitherSkeleton
A wither skeleton’s sound, over its skull.
Piglin
A piglin’s sound, over a piglin head.
CustomHead
The sound set by a player head’s own note block sound.
Implementations§
§impl NoteInstrument
impl NoteInstrument
pub const ALL: [NoteInstrument; 27]
pub const ALL: [NoteInstrument; 27]
Every instrument, in the instrument property’s order.
Trait Implementations§
§impl Clone for NoteInstrument
impl Clone for NoteInstrument
§fn clone(&self) -> NoteInstrument
fn clone(&self) -> NoteInstrument
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more