Enum SpawnerKind
#[non_exhaustive]pub enum SpawnerKind {
Phantom,
Patrol,
Cat,
VillageSiege,
WanderingTrader,
}Expand description
A spawner vanilla runs for every level (MinecraftServer’s custom spawners).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Phantom
PhantomSpawner: phantoms for players who have not slept.
Patrol
PatrolSpawner: pillager patrols.
Cat
CatSpawner: cats in villages and swamp huts.
VillageSiege
VillageSiege: zombie sieges on a village at night.
WanderingTrader
WanderingTraderSpawner: the wandering trader and its llamas.
Trait Implementations§
§impl Clone for SpawnerKind
impl Clone for SpawnerKind
§fn clone(&self) -> SpawnerKind
fn clone(&self) -> SpawnerKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpawnerKind
§impl Debug for SpawnerKind
impl Debug for SpawnerKind
impl Eq for SpawnerKind
§impl Hash for SpawnerKind
impl Hash for SpawnerKind
§impl PartialEq for SpawnerKind
impl PartialEq for SpawnerKind
impl StructuralPartialEq for SpawnerKind
Auto Trait Implementations§
impl Freeze for SpawnerKind
impl RefUnwindSafe for SpawnerKind
impl Send for SpawnerKind
impl Sync for SpawnerKind
impl Unpin for SpawnerKind
impl UnsafeUnpin for SpawnerKind
impl UnwindSafe for SpawnerKind
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