#[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§
Source§impl GameEvent
impl GameEvent
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Trait Implementations§
Source§impl AzaleaRead for GameEvent
impl AzaleaRead for GameEvent
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for GameEvent
impl AzaleaWrite for GameEvent
Source§impl<'de> Deserialize<'de> for GameEvent
impl<'de> Deserialize<'de> for GameEvent
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