#[repr(u32)]pub enum CustomStat {
Show 75 variants
LeaveGame = 0,
PlayTime = 1,
TotalWorldTime = 2,
TimeSinceDeath = 3,
TimeSinceRest = 4,
SneakTime = 5,
WalkOneCm = 6,
CrouchOneCm = 7,
SprintOneCm = 8,
WalkOnWaterOneCm = 9,
FallOneCm = 10,
ClimbOneCm = 11,
FlyOneCm = 12,
WalkUnderWaterOneCm = 13,
MinecartOneCm = 14,
BoatOneCm = 15,
PigOneCm = 16,
HorseOneCm = 17,
AviateOneCm = 18,
SwimOneCm = 19,
StriderOneCm = 20,
Jump = 21,
Drop = 22,
DamageDealt = 23,
DamageDealtAbsorbed = 24,
DamageDealtResisted = 25,
DamageTaken = 26,
DamageBlockedByShield = 27,
DamageAbsorbed = 28,
DamageResisted = 29,
Deaths = 30,
MobKills = 31,
AnimalsBred = 32,
PlayerKills = 33,
FishCaught = 34,
TalkedToVillager = 35,
TradedWithVillager = 36,
EatCakeSlice = 37,
FillCauldron = 38,
UseCauldron = 39,
CleanArmor = 40,
CleanBanner = 41,
CleanShulkerBox = 42,
InteractWithBrewingstand = 43,
InteractWithBeacon = 44,
InspectDropper = 45,
InspectHopper = 46,
InspectDispenser = 47,
PlayNoteblock = 48,
TuneNoteblock = 49,
PotFlower = 50,
TriggerTrappedChest = 51,
OpenEnderchest = 52,
EnchantItem = 53,
PlayRecord = 54,
InteractWithFurnace = 55,
InteractWithCraftingTable = 56,
OpenChest = 57,
SleepInBed = 58,
OpenShulkerBox = 59,
OpenBarrel = 60,
InteractWithBlastFurnace = 61,
InteractWithSmoker = 62,
InteractWithLectern = 63,
InteractWithCampfire = 64,
InteractWithCartographyTable = 65,
InteractWithLoom = 66,
InteractWithStonecutter = 67,
BellRing = 68,
RaidTrigger = 69,
RaidWin = 70,
InteractWithAnvil = 71,
InteractWithGrindstone = 72,
TargetHit = 73,
InteractWithSmithingTable = 74,
}
Variants§
LeaveGame = 0
PlayTime = 1
TotalWorldTime = 2
TimeSinceDeath = 3
TimeSinceRest = 4
SneakTime = 5
WalkOneCm = 6
CrouchOneCm = 7
SprintOneCm = 8
WalkOnWaterOneCm = 9
FallOneCm = 10
ClimbOneCm = 11
FlyOneCm = 12
WalkUnderWaterOneCm = 13
MinecartOneCm = 14
BoatOneCm = 15
PigOneCm = 16
HorseOneCm = 17
AviateOneCm = 18
SwimOneCm = 19
StriderOneCm = 20
Jump = 21
Drop = 22
DamageDealt = 23
DamageDealtAbsorbed = 24
DamageDealtResisted = 25
DamageTaken = 26
DamageBlockedByShield = 27
DamageAbsorbed = 28
DamageResisted = 29
Deaths = 30
MobKills = 31
AnimalsBred = 32
PlayerKills = 33
FishCaught = 34
TalkedToVillager = 35
TradedWithVillager = 36
EatCakeSlice = 37
FillCauldron = 38
UseCauldron = 39
CleanArmor = 40
CleanBanner = 41
CleanShulkerBox = 42
InteractWithBrewingstand = 43
InteractWithBeacon = 44
InspectDropper = 45
InspectHopper = 46
InspectDispenser = 47
PlayNoteblock = 48
TuneNoteblock = 49
PotFlower = 50
TriggerTrappedChest = 51
OpenEnderchest = 52
EnchantItem = 53
PlayRecord = 54
InteractWithFurnace = 55
InteractWithCraftingTable = 56
OpenChest = 57
SleepInBed = 58
OpenShulkerBox = 59
OpenBarrel = 60
InteractWithBlastFurnace = 61
InteractWithSmoker = 62
InteractWithLectern = 63
InteractWithCampfire = 64
InteractWithCartographyTable = 65
InteractWithLoom = 66
InteractWithStonecutter = 67
BellRing = 68
RaidTrigger = 69
RaidWin = 70
InteractWithAnvil = 71
InteractWithGrindstone = 72
TargetHit = 73
InteractWithSmithingTable = 74
Implementations§
Source§impl CustomStat
impl CustomStat
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl CustomStat
impl CustomStat
Sourcepub unsafe fn from_u32_unchecked(id: u32) -> Self
pub unsafe fn from_u32_unchecked(id: u32) -> Self
pub fn is_valid_id(id: u32) -> bool
Trait Implementations§
Source§impl Clone for CustomStat
impl Clone for CustomStat
Source§fn clone(&self) -> CustomStat
fn clone(&self) -> CustomStat
Returns a copy 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 CustomStat
impl Debug for CustomStat
Source§impl<'de> Deserialize<'de> for CustomStat
impl<'de> Deserialize<'de> for CustomStat
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 Display for CustomStat
impl Display for CustomStat
Source§impl FromNbtTag for CustomStat
impl FromNbtTag for CustomStat
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for CustomStat
impl FromStr for CustomStat
Source§impl Hash for CustomStat
impl Hash for CustomStat
Source§impl McBufReadable for CustomStat
impl McBufReadable for CustomStat
Source§impl McBufWritable for CustomStat
impl McBufWritable for CustomStat
Source§impl PartialEq for CustomStat
impl PartialEq for CustomStat
Source§impl Registry for CustomStat
impl Registry for CustomStat
Source§impl Serialize for CustomStat
impl Serialize for CustomStat
Source§impl ToNbtTag for CustomStat
impl ToNbtTag for CustomStat
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for CustomStat
impl TryFrom<u32> for CustomStat
impl Copy for CustomStat
impl Eq for CustomStat
impl StructuralPartialEq for CustomStat
Auto Trait Implementations§
impl Freeze for CustomStat
impl RefUnwindSafe for CustomStat
impl Send for CustomStat
impl Sync for CustomStat
impl Unpin for CustomStat
impl UnwindSafe for CustomStat
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)