pub struct MinecartSpawner {
pub delay: Option<i16>,
pub max_nearby_entities: Option<i16>,
pub max_spawn_delay: Option<i16>,
pub min_spawn_delay: Option<i16>,
pub required_player_range: Option<i16>,
pub spawn_count: Option<i16>,
pub spawn_data: Option<HashMap<Cow<'static, str>, Value>>,
pub spawn_potentials: Option<Vec<SpawnData_save>>,
pub spawn_range: Option<i16>,
pub parent: AbstractMinecart,
}Available on crate features
1.17 and entities only.Fields§
§delay: Option<i16>"Delay"
max_nearby_entities: Option<i16>"MaxNearbyEntities"
max_spawn_delay: Option<i16>"MaxSpawnDelay"
min_spawn_delay: Option<i16>"MinSpawnDelay"
required_player_range: Option<i16>"RequiredPlayerRange"
spawn_count: Option<i16>"SpawnCount"
spawn_data: Option<HashMap<Cow<'static, str>, Value>>"SpawnData"
spawn_potentials: Option<Vec<SpawnData_save>>"SpawnPotentials"
spawn_range: Option<i16>"SpawnRange"
parent: AbstractMinecartInherited fields from AbstractMinecart
Trait Implementations§
Source§impl Clone for MinecartSpawner
impl Clone for MinecartSpawner
Source§fn clone(&self) -> MinecartSpawner
fn clone(&self) -> MinecartSpawner
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MinecartSpawner
impl Debug for MinecartSpawner
Source§impl<'de> Deserialize<'de> for MinecartSpawner
Available on crate feature serde only.
impl<'de> Deserialize<'de> for MinecartSpawner
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MinecartSpawner
impl PartialEq for MinecartSpawner
Source§impl Serialize for MinecartSpawner
Available on crate feature serde only.
impl Serialize for MinecartSpawner
Available on crate feature
serde only.impl StructuralPartialEq for MinecartSpawner
Auto Trait Implementations§
impl Freeze for MinecartSpawner
impl RefUnwindSafe for MinecartSpawner
impl Send for MinecartSpawner
impl Sync for MinecartSpawner
impl Unpin for MinecartSpawner
impl UnwindSafe for MinecartSpawner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more