Enum DragonPhase
#[non_exhaustive]pub enum DragonPhase {
HoldingPattern,
StrafePlayer,
LandingApproach,
Landing,
Takeoff,
SittingFlaming,
SittingScanning,
SittingAttacking,
ChargingPlayer,
Dying,
Hover,
}Expand description
An ender dragon phase (EnderDragonPhase), in vanilla’s order.
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.
HoldingPattern
Circling the end island (DragonPhaseHoldingPattern).
StrafePlayer
Flying at a player and shooting fireballs.
LandingApproach
Flying toward the fountain to land.
Landing
Descending onto the fountain.
Takeoff
Lifting off the fountain.
SittingFlaming
Perched, breathing fire.
SittingScanning
Perched, looking for a target.
SittingAttacking
Perched, about to breathe.
ChargingPlayer
Charging a player in melee.
Dying
Dying, flying to the fountain.
Hover
Hovering in place.
Implementations§
§impl DragonPhase
impl DragonPhase
Trait Implementations§
§impl Clone for DragonPhase
impl Clone for DragonPhase
§fn clone(&self) -> DragonPhase
fn clone(&self) -> DragonPhase
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 DragonPhase
§impl Debug for DragonPhase
impl Debug for DragonPhase
impl Eq for DragonPhase
§impl Hash for DragonPhase
impl Hash for DragonPhase
§impl PartialEq for DragonPhase
impl PartialEq for DragonPhase
impl StructuralPartialEq for DragonPhase
Auto Trait Implementations§
impl Freeze for DragonPhase
impl RefUnwindSafe for DragonPhase
impl Send for DragonPhase
impl Sync for DragonPhase
impl Unpin for DragonPhase
impl UnsafeUnpin for DragonPhase
impl UnwindSafe for DragonPhase
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