Skip to main content

ParticleType

Struct ParticleType 

Source
#[non_exhaustive]
pub struct ParticleType(pub i32);
Expand description

Mapped i32 value; unknown values are kept as-is.

Tuple Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§0: i32

Implementations§

Source§

impl ParticleType

Source

pub const ANGRY_VILLAGER: Self

angry_villager

Source

pub const BLOCK: Self

block

Source

pub const BLOCK_MARKER: Self

block_marker

Source

pub const BUBBLE: Self

bubble

Source

pub const SULFUR_BUBBLES: Self

sulfur_bubbles

Source

pub const NOXIOUS_GAS: Self

noxious_gas

Source

pub const NOXIOUS_GAS_CLOUD: Self

noxious_gas_cloud

Source

pub const GEYSER: Self

geyser

Source

pub const GEYSER_BASE: Self

geyser_base

Source

pub const GEYSER_POOF: Self

geyser_poof

Source

pub const GEYSER_PLUME: Self

geyser_plume

Source

pub const CLOUD: Self

cloud

Source

pub const COPPER_FIRE_FLAME: Self

copper_fire_flame

Source

pub const CRIT: Self

crit

Source

pub const DAMAGE_INDICATOR: Self

damage_indicator

Source

pub const DRAGON_BREATH: Self

dragon_breath

Source

pub const DRIPPING_LAVA: Self

dripping_lava

Source

pub const FALLING_LAVA: Self

falling_lava

Source

pub const LANDING_LAVA: Self

landing_lava

Source

pub const DRIPPING_WATER: Self

dripping_water

Source

pub const FALLING_WATER: Self

falling_water

Source

pub const DUST: Self

dust

Source

pub const DUST_COLOR_TRANSITION: Self

dust_color_transition

Source

pub const EFFECT: Self

effect

Source

pub const ELDER_GUARDIAN: Self

elder_guardian

Source

pub const ENCHANTED_HIT: Self

enchanted_hit

Source

pub const ENCHANT: Self

enchant

Source

pub const END_ROD: Self

end_rod

Source

pub const ENTITY_EFFECT: Self

entity_effect

Source

pub const EXPLOSION_EMITTER: Self

explosion_emitter

Source

pub const EXPLOSION: Self

explosion

Source

pub const GUST: Self

gust

Source

pub const SMALL_GUST: Self

small_gust

Source

pub const GUST_EMITTER_LARGE: Self

gust_emitter_large

Source

pub const GUST_EMITTER_SMALL: Self

gust_emitter_small

Source

pub const SONIC_BOOM: Self

sonic_boom

Source

pub const FALLING_DUST: Self

falling_dust

Source

pub const FIREWORK: Self

firework

Source

pub const FISHING: Self

fishing

Source

pub const FLAME: Self

flame

Source

pub const INFESTED: Self

infested

Source

pub const CHERRY_LEAVES: Self

cherry_leaves

Source

pub const PALE_OAK_LEAVES: Self

pale_oak_leaves

Source

pub const TINTED_LEAVES: Self

tinted_leaves

Source

pub const SCULK_SOUL: Self

sculk_soul

Source

pub const SCULK_CHARGE: Self

sculk_charge

Source

pub const SCULK_CHARGE_POP: Self

sculk_charge_pop

Source

pub const SOUL_FIRE_FLAME: Self

soul_fire_flame

Source

pub const SOUL: Self

soul

Source

pub const FLASH: Self

flash

Source

pub const HAPPY_VILLAGER: Self

happy_villager

Source

pub const COMPOSTER: Self

composter

Source

pub const HEART: Self

heart

Source

pub const INSTANT_EFFECT: Self

instant_effect

Source

pub const ITEM: Self

item

Source

pub const VIBRATION: Self

vibration

Source

pub const TRAIL: Self

trail

Source

pub const PAUSE_MOB_GROWTH: Self

pause_mob_growth

Source

pub const RESET_MOB_GROWTH: Self

reset_mob_growth

Source

pub const ITEM_SLIME: Self

item_slime

Source

pub const ITEM_COBWEB: Self

item_cobweb

Source

pub const ITEM_SNOWBALL: Self

item_snowball

Source

pub const LARGE_SMOKE: Self

large_smoke

Source

pub const LAVA: Self

lava

Source

pub const MYCELIUM: Self

mycelium

Source

pub const NOTE: Self

note

Source

pub const POOF: Self

poof

Source

pub const PORTAL: Self

portal

Source

pub const RAIN: Self

rain

Source

pub const SMOKE: Self

smoke

Source

pub const WHITE_SMOKE: Self

white_smoke

Source

pub const SNEEZE: Self

sneeze

Source

pub const SPIT: Self

spit

Source

pub const SQUID_INK: Self

squid_ink

Source

pub const SWEEP_ATTACK: Self

sweep_attack

Source

pub const TOTEM_OF_UNDYING: Self

totem_of_undying

Source

pub const UNDERWATER: Self

underwater

Source

pub const SPLASH: Self

splash

Source

pub const WITCH: Self

witch

Source

pub const BUBBLE_POP: Self

bubble_pop

Source

pub const CURRENT_DOWN: Self

current_down

Source

pub const BUBBLE_COLUMN_UP: Self

bubble_column_up

Source

pub const NAUTILUS: Self

nautilus

Source

pub const DOLPHIN: Self

dolphin

Source

pub const CAMPFIRE_COSY_SMOKE: Self

campfire_cosy_smoke

Source

pub const CAMPFIRE_SIGNAL_SMOKE: Self

campfire_signal_smoke

Source

pub const DRIPPING_HONEY: Self

dripping_honey

Source

pub const FALLING_HONEY: Self

falling_honey

Source

pub const LANDING_HONEY: Self

landing_honey

Source

pub const FALLING_NECTAR: Self

falling_nectar

Source

pub const FALLING_SPORE_BLOSSOM: Self

falling_spore_blossom

Source

pub const ASH: Self

ash

Source

pub const CRIMSON_SPORE: Self

crimson_spore

Source

pub const WARPED_SPORE: Self

warped_spore

Source

pub const SPORE_BLOSSOM_AIR: Self

spore_blossom_air

Source

pub const DRIPPING_OBSIDIAN_TEAR: Self

dripping_obsidian_tear

Source

pub const FALLING_OBSIDIAN_TEAR: Self

falling_obsidian_tear

Source

pub const LANDING_OBSIDIAN_TEAR: Self

landing_obsidian_tear

Source

pub const REVERSE_PORTAL: Self

reverse_portal

Source

pub const WHITE_ASH: Self

white_ash

Source

pub const SMALL_FLAME: Self

small_flame

Source

pub const SNOWFLAKE: Self

snowflake

Source

pub const DRIPPING_DRIPSTONE_LAVA: Self

dripping_dripstone_lava

Source

pub const FALLING_DRIPSTONE_LAVA: Self

falling_dripstone_lava

Source

pub const DRIPPING_DRIPSTONE_WATER: Self

dripping_dripstone_water

Source

pub const FALLING_DRIPSTONE_WATER: Self

falling_dripstone_water

Source

pub const GLOW_SQUID_INK: Self

glow_squid_ink

Source

pub const GLOW: Self

glow

Source

pub const WAX_ON: Self

wax_on

Source

pub const WAX_OFF: Self

wax_off

Source

pub const ELECTRIC_SPARK: Self

electric_spark

Source

pub const SCRAPE: Self

scrape

Source

pub const SHRIEK: Self

shriek

Source

pub const EGG_CRACK: Self

egg_crack

Source

pub const DUST_PLUME: Self

dust_plume

Source

pub const TRIAL_SPAWNER_DETECTION: Self

trial_spawner_detection

Source

pub const TRIAL_SPAWNER_DETECTION_OMINOUS: Self

trial_spawner_detection_ominous

Source

pub const VAULT_CONNECTION: Self

vault_connection

Source

pub const DUST_PILLAR: Self

dust_pillar

Source

pub const OMINOUS_SPAWNING: Self

ominous_spawning

Source

pub const RAID_OMEN: Self

raid_omen

Source

pub const TRIAL_OMEN: Self

trial_omen

Source

pub const BLOCK_CRUMBLE: Self

block_crumble

Source

pub const FIREFLY: Self

firefly

Source

pub const SULFUR_CUBE_GOO: Self

sulfur_cube_goo

Source

pub const fn new(v: i32) -> Self

The value with wire number v.

Source

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

minecraft-data name of the value, if known.

Trait Implementations§

Source§

impl Clone for ParticleType

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for ParticleType

Source§

impl Debug for ParticleType

Available on crate feature v26_2 only.
Source§

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

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

impl Default for ParticleType

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for ParticleType

Source§

impl Hash for ParticleType

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 Ord for ParticleType

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl PartialEq for ParticleType

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialOrd for ParticleType

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for ParticleType

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.