pub enum GameChangeReason {
NoRespawnAvailable,
EndRaining,
BeginRaining,
ChangeGameMode(GameMode),
WinGame(WinGameAction),
Demo(DemoEvent),
ArrowHitPlayer,
RainLevelChange(f32),
ThunderLevelChange(f32),
PufferfishSting,
ElderGuardianMobAppearance,
Respawn(RespawnRequestType),
}Variants§
NoRespawnAvailable
EndRaining
BeginRaining
ChangeGameMode(GameMode)
WinGame(WinGameAction)
Demo(DemoEvent)
ArrowHitPlayer
RainLevelChange(f32)
ThunderLevelChange(f32)
PufferfishSting
ElderGuardianMobAppearance
Respawn(RespawnRequestType)
Trait Implementations§
Source§impl Clone for GameChangeReason
impl Clone for GameChangeReason
Source§fn clone(&self) -> GameChangeReason
fn clone(&self) -> GameChangeReason
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 GameChangeReason
impl Debug for GameChangeReason
Source§impl Deserialize for GameChangeReason
impl Deserialize for GameChangeReason
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<GameChangeReason> for PlayChangeGameStateSpec
impl From<GameChangeReason> for PlayChangeGameStateSpec
Source§fn from(other: GameChangeReason) -> Self
fn from(other: GameChangeReason) -> Self
Converts to this type from the input type.
Source§impl From<PlayChangeGameStateSpec> for GameChangeReason
impl From<PlayChangeGameStateSpec> for GameChangeReason
Source§fn from(other: PlayChangeGameStateSpec) -> Self
fn from(other: PlayChangeGameStateSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GameChangeReason
impl PartialEq for GameChangeReason
Source§impl Serialize for GameChangeReason
impl Serialize for GameChangeReason
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for GameChangeReason
Auto Trait Implementations§
impl Freeze for GameChangeReason
impl RefUnwindSafe for GameChangeReason
impl Send for GameChangeReason
impl Sync for GameChangeReason
impl Unpin for GameChangeReason
impl UnwindSafe for GameChangeReason
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