Struct minecraft_json::minecraft::data::conditions::Effect [−][src]
pub struct Effect { pub ambient: Option<bool>, pub amplifier: Option<Ranged<isize>>, pub duration: Option<Ranged<isize>>, pub visible: Option<bool>, }
Expand description
Effect properties.
Fields
ambient: Option<bool>
Whether the effect is from a beacon.
amplifier: Option<Ranged<isize>>
The effect amplifier.
duration: Option<Ranged<isize>>
The effect duration in ticks.
visible: Option<bool>
Whether the effect has visible particles.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more