Struct DragonRef
pub struct DragonRef(/* private fields */);Expand description
Implementations§
§impl DragonRef
impl DragonRef
pub fn phase(self, host: &dyn Host) -> Option<DragonPhase>
pub fn phase(self, host: &dyn Host) -> Option<DragonPhase>
Side: server.
EnderDragonPhaseManager.getCurrentPhase.
pub fn alive_crystals(self, host: &dyn Host) -> Option<i32>
pub fn alive_crystals(self, host: &dyn Host) -> Option<i32>
Side: server.
EnderDragonFight.aliveCrystals: the crystals the last scan found
(every 100 ticks). None for a stale handle, a client, or a dragon
outside the End or whose fight is not loaded.
pub fn previously_killed(self, host: &dyn Host) -> Option<bool>
pub fn previously_killed(self, host: &dyn Host) -> Option<bool>
Side: server.
EnderDragonFight.hasPreviouslyKilledDragon. None as
alive_crystals is.
pub fn set_phase(self, host: &mut dyn ServerHost, phase: DragonPhase) -> bool
pub fn set_phase(self, host: &mut dyn ServerHost, phase: DragonPhase) -> bool
Side: server.
EnderDragonPhaseManager.setPhase: the dragon ends its phase and
begins the new one fresh (targets and counters cleared), and the
clients get the synced DATA_PHASE. Setting the phase it holds does
nothing, as in vanilla (a strafing dragon keeps its player). No
random draw. False for a stale handle or a client. The new phase
runs from the dragon’s next tick.
Trait Implementations§
impl Copy for DragonRef
impl Eq for DragonRef
impl StructuralPartialEq for DragonRef
Auto Trait Implementations§
impl Freeze for DragonRef
impl RefUnwindSafe for DragonRef
impl Send for DragonRef
impl Sync for DragonRef
impl Unpin for DragonRef
impl UnsafeUnpin for DragonRef
impl UnwindSafe for DragonRef
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