Enum particle_type

Source
#[repr(u8)]
pub enum particle_type {
Show 112 variants angry_villager = 0, block = 1, block_marker = 2, bubble = 3, cloud = 4, crit = 5, damage_indicator = 6, dragon_breath = 7, dripping_lava = 8, falling_lava = 9, landing_lava = 10, dripping_water = 11, falling_water = 12, dust = 13, dust_color_transition = 14, effect = 15, elder_guardian = 16, enchanted_hit = 17, enchant = 18, end_rod = 19, entity_effect = 20, explosion_emitter = 21, explosion = 22, gust = 23, small_gust = 24, gust_emitter_large = 25, gust_emitter_small = 26, sonic_boom = 27, falling_dust = 28, firework = 29, fishing = 30, flame = 31, infested = 32, cherry_leaves = 33, pale_oak_leaves = 34, sculk_soul = 35, sculk_charge = 36, sculk_charge_pop = 37, soul_fire_flame = 38, soul = 39, flash = 40, happy_villager = 41, composter = 42, heart = 43, instant_effect = 44, item = 45, vibration = 46, trail = 47, item_slime = 48, item_cobweb = 49, item_snowball = 50, large_smoke = 51, lava = 52, mycelium = 53, note = 54, poof = 55, portal = 56, rain = 57, smoke = 58, white_smoke = 59, sneeze = 60, spit = 61, squid_ink = 62, sweep_attack = 63, totem_of_undying = 64, underwater = 65, splash = 66, witch = 67, bubble_pop = 68, current_down = 69, bubble_column_up = 70, nautilus = 71, dolphin = 72, campfire_cosy_smoke = 73, campfire_signal_smoke = 74, dripping_honey = 75, falling_honey = 76, landing_honey = 77, falling_nectar = 78, falling_spore_blossom = 79, ash = 80, crimson_spore = 81, warped_spore = 82, spore_blossom_air = 83, dripping_obsidian_tear = 84, falling_obsidian_tear = 85, landing_obsidian_tear = 86, reverse_portal = 87, white_ash = 88, small_flame = 89, snowflake = 90, dripping_dripstone_lava = 91, falling_dripstone_lava = 92, dripping_dripstone_water = 93, falling_dripstone_water = 94, glow_squid_ink = 95, glow = 96, wax_on = 97, wax_off = 98, electric_spark = 99, scrape = 100, shriek = 101, egg_crack = 102, dust_plume = 103, trial_spawner_detection = 104, trial_spawner_detection_ominous = 105, vault_connection = 106, dust_pillar = 107, ominous_spawning = 108, raid_omen = 109, trial_omen = 110, block_crumble = 111,
}

Variants§

§

angry_villager = 0

§

block = 1

§

block_marker = 2

§

bubble = 3

§

cloud = 4

§

crit = 5

§

damage_indicator = 6

§

dragon_breath = 7

§

dripping_lava = 8

§

falling_lava = 9

§

landing_lava = 10

§

dripping_water = 11

§

falling_water = 12

§

dust = 13

§

dust_color_transition = 14

§

effect = 15

§

elder_guardian = 16

§

enchanted_hit = 17

§

enchant = 18

§

end_rod = 19

§

entity_effect = 20

§

explosion_emitter = 21

§

explosion = 22

§

gust = 23

§

small_gust = 24

§

gust_emitter_large = 25

§

gust_emitter_small = 26

§

sonic_boom = 27

§

falling_dust = 28

§

firework = 29

§

fishing = 30

§

flame = 31

§

infested = 32

§

cherry_leaves = 33

§

pale_oak_leaves = 34

§

sculk_soul = 35

§

sculk_charge = 36

§

sculk_charge_pop = 37

§

soul_fire_flame = 38

§

soul = 39

§

flash = 40

§

happy_villager = 41

§

composter = 42

§

heart = 43

§

instant_effect = 44

§

item = 45

§

vibration = 46

§

trail = 47

§

item_slime = 48

§

item_cobweb = 49

§

item_snowball = 50

§

large_smoke = 51

§

lava = 52

§

mycelium = 53

§

note = 54

§

poof = 55

§

portal = 56

§

rain = 57

§

smoke = 58

§

white_smoke = 59

§

sneeze = 60

§

spit = 61

§

squid_ink = 62

§

sweep_attack = 63

§

totem_of_undying = 64

§

underwater = 65

§

splash = 66

§

witch = 67

§

bubble_pop = 68

§

current_down = 69

§

bubble_column_up = 70

§

nautilus = 71

§

dolphin = 72

§

campfire_cosy_smoke = 73

§

campfire_signal_smoke = 74

§

dripping_honey = 75

§

falling_honey = 76

§

landing_honey = 77

§

falling_nectar = 78

§

falling_spore_blossom = 79

§

ash = 80

§

crimson_spore = 81

§

warped_spore = 82

§

spore_blossom_air = 83

§

dripping_obsidian_tear = 84

§

falling_obsidian_tear = 85

§

landing_obsidian_tear = 86

§

reverse_portal = 87

§

white_ash = 88

§

small_flame = 89

§

snowflake = 90

§

dripping_dripstone_lava = 91

§

falling_dripstone_lava = 92

§

dripping_dripstone_water = 93

§

falling_dripstone_water = 94

§

glow_squid_ink = 95

§

glow = 96

§

wax_on = 97

§

wax_off = 98

§

electric_spark = 99

§

scrape = 100

§

shriek = 101

§

egg_crack = 102

§

dust_plume = 103

§

trial_spawner_detection = 104

§

trial_spawner_detection_ominous = 105

§

vault_connection = 106

§

dust_pillar = 107

§

ominous_spawning = 108

§

raid_omen = 109

§

trial_omen = 110

§

block_crumble = 111

Implementations§

Source§

impl particle_type

Source

pub const fn id(self) -> u8

Source

pub const fn new(x: u8) -> Self

Source§

impl particle_type

Source

pub const MAX: usize = 111usize

Source§

impl particle_type

Source

pub const fn name(self) -> &'static str

Source

pub fn parse(name: &[u8]) -> Option<Self>

Trait Implementations§

Source§

impl Clone for particle_type

Source§

fn clone(&self) -> particle_type

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for particle_type

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for particle_type

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for particle_type

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for particle_type

Source§

fn eq(&self, other: &particle_type) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Read for particle_type

Source§

fn read(n: &mut &[u8]) -> Option<Self>

Source§

impl Write for particle_type

Source§

unsafe fn sz(&self) -> usize

Safety Read more
Source§

unsafe fn write(&self, w: &mut UnsafeWriter)

Safety Read more
Source§

impl Copy for particle_type

Source§

impl Eq for particle_type

Source§

impl StructuralPartialEq for particle_type

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.