-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathlib.rs
More file actions
89 lines (87 loc) · 1.63 KB
/
Copy pathlib.rs
File metadata and controls
89 lines (87 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
use feather_blocks::BlockId;
use feather_items::ItemStack;
use ordinalizer::Ordinal;
/// This is an enum over the kinds of particles
/// listed on [the Particle data type](https://wiki.vg/index.php?title=Protocol&diff=14889&oldid=14881#Particle).
#[derive(Copy, Clone, Debug, PartialEq, Ordinal)]
pub enum ParticleData {
AmbientEntityEffect,
AngryVillager,
Barrier,
/// Block break particles
Block(BlockId),
Bubble,
Cloud,
Crit,
DamageIndicator,
DragonBreath,
DrippingLava,
FallingLava,
LandingLava,
DrippingWater,
FallingWater,
Dust {
red: f32,
green: f32,
blue: f32,
/// Clamped between 0.01 and 4.0.
scale: f32,
},
Effect,
ElderGuardian,
EnchantedHit,
Enchant,
EndRod,
EntityEffect,
ExplosionEmitter,
Explosion,
FallingDust(BlockId),
Firework,
Fishing,
Flame,
Flash,
HappyVillager,
Composter,
Heart,
InstantEffect,
Item(Option<ItemStack>),
ItemSlime,
ItemSnowball,
LargeSmoke,
Lava,
Mycelium,
Note,
Poof,
Portal,
Rain,
Smoke,
Sneeze,
Spit,
SquidInk,
SweepAttack,
TotemOfUndying,
Underwater,
Splash,
Witch,
BublePop,
CurrentDown,
BubbleColumnUp,
Nautilus,
Dolphin,
CampfireCosySmoke,
CampfireSignalSmoke,
DrippingHoney,
FallingHoney,
LandingHoney,
FallingNectar,
}
impl Default for ParticleData {
fn default() -> Self {
ParticleData::Dust {
red: 1.0,
blue: 0.0,
green: 0.0,
scale: 1.0,
}
}
}