#[repr(u32)]pub enum GameEvent {
Show 60 variants
BlockActivate = 0,
BlockAttach = 1,
BlockChange = 2,
BlockClose = 3,
BlockDeactivate = 4,
BlockDestroy = 5,
BlockDetach = 6,
BlockOpen = 7,
BlockPlace = 8,
ContainerClose = 9,
ContainerOpen = 10,
Drink = 11,
Eat = 12,
ElytraGlide = 13,
EntityDamage = 14,
EntityDie = 15,
EntityDismount = 16,
EntityInteract = 17,
EntityMount = 18,
EntityPlace = 19,
EntityAction = 20,
Equip = 21,
Explode = 22,
Flap = 23,
FluidPickup = 24,
FluidPlace = 25,
HitGround = 26,
InstrumentPlay = 27,
ItemInteractFinish = 28,
ItemInteractStart = 29,
JukeboxPlay = 30,
JukeboxStopPlay = 31,
LightningStrike = 32,
NoteBlockPlay = 33,
PrimeFuse = 34,
ProjectileLand = 35,
ProjectileShoot = 36,
SculkSensorTendrilsClicking = 37,
Shear = 38,
Shriek = 39,
Splash = 40,
Step = 41,
Swim = 42,
Teleport = 43,
Unequip = 44,
Resonate1 = 45,
Resonate2 = 46,
Resonate3 = 47,
Resonate4 = 48,
Resonate5 = 49,
Resonate6 = 50,
Resonate7 = 51,
Resonate8 = 52,
Resonate9 = 53,
Resonate10 = 54,
Resonate11 = 55,
Resonate12 = 56,
Resonate13 = 57,
Resonate14 = 58,
Resonate15 = 59,
}
Variants§
BlockActivate = 0
BlockAttach = 1
BlockChange = 2
BlockClose = 3
BlockDeactivate = 4
BlockDestroy = 5
BlockDetach = 6
BlockOpen = 7
BlockPlace = 8
ContainerClose = 9
ContainerOpen = 10
Drink = 11
Eat = 12
ElytraGlide = 13
EntityDamage = 14
EntityDie = 15
EntityDismount = 16
EntityInteract = 17
EntityMount = 18
EntityPlace = 19
EntityAction = 20
Equip = 21
Explode = 22
Flap = 23
FluidPickup = 24
FluidPlace = 25
HitGround = 26
InstrumentPlay = 27
ItemInteractFinish = 28
ItemInteractStart = 29
JukeboxPlay = 30
JukeboxStopPlay = 31
LightningStrike = 32
NoteBlockPlay = 33
PrimeFuse = 34
ProjectileLand = 35
ProjectileShoot = 36
SculkSensorTendrilsClicking = 37
Shear = 38
Shriek = 39
Splash = 40
Step = 41
Swim = 42
Teleport = 43
Unequip = 44
Resonate1 = 45
Resonate2 = 46
Resonate3 = 47
Resonate4 = 48
Resonate5 = 49
Resonate6 = 50
Resonate7 = 51
Resonate8 = 52
Resonate9 = 53
Resonate10 = 54
Resonate11 = 55
Resonate12 = 56
Resonate13 = 57
Resonate14 = 58
Resonate15 = 59
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GameEvent
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for GameEvent
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 FromNbtTag for GameEvent
impl FromNbtTag for GameEvent
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl ToNbtTag for GameEvent
impl ToNbtTag for GameEvent
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
impl Copy for GameEvent
impl Eq for GameEvent
impl StructuralPartialEq for GameEvent
Auto Trait Implementations§
impl Freeze for GameEvent
impl RefUnwindSafe for GameEvent
impl Send for GameEvent
impl Sync for GameEvent
impl Unpin for GameEvent
impl UnwindSafe for GameEvent
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.