@@ -2,9 +2,8 @@ use bytemuck::{Pod, Zeroable};
22use libcraft_blocks:: BlockState ;
33use libcraft_items:: Item ;
44use ordinalizer:: Ordinal ;
5- use serde:: { Deserialize , Serialize } ;
65
7- #[ derive( Copy , Clone , Debug , Serialize , Deserialize , Pod , Zeroable ) ]
6+ #[ derive( Copy , Clone , Debug , Pod , Zeroable ) ]
87#[ repr( C ) ]
98pub struct Particle {
109 pub kind : ParticleKind ,
@@ -18,8 +17,7 @@ pub struct Particle {
1817/// listed on [the Particle data type](https://wiki.vg/index.php?title=Protocol&oldid=16400#Particle).
1918/// Some particles are missing on that list (SoulFlame, Soul, BubblePop and the crying obsidian ones)
2019/// So they've been added
21- #[ derive( Copy , Clone , Debug , PartialEq , Ordinal , Serialize , Deserialize ) ]
22- #[ serde( rename_all = "snake_case" ) ]
20+ #[ derive( Copy , Clone , Debug , PartialEq , Ordinal ) ]
2321#[ repr( C ) ]
2422pub enum ParticleKind {
2523 AmbientEntityEffect ,
@@ -103,8 +101,6 @@ pub enum ParticleKind {
103101 WhiteAsh ,
104102}
105103
106- #[ allow( warnings) ]
107- #[ allow( clippy:: all) ]
108104impl ParticleKind {
109105 /// Returns the `id` property of this `ParticleKind`.
110106 pub fn id ( & self ) -> u32 {
@@ -272,8 +268,6 @@ impl ParticleKind {
272268 }
273269}
274270
275- #[ allow( warnings) ]
276- #[ allow( clippy:: all) ]
277271impl ParticleKind {
278272 /// Returns the `name` property of this `ParticleKind`.
279273 pub fn name ( & self ) -> & ' static str {
0 commit comments