#[repr(u8)]
pub enum custom_stat {
Show 75 variants leave_game = 0, play_time = 1, total_world_time = 2, time_since_death = 3, time_since_rest = 4, sneak_time = 5, walk_one_cm = 6, crouch_one_cm = 7, sprint_one_cm = 8, walk_on_water_one_cm = 9, fall_one_cm = 10, climb_one_cm = 11, fly_one_cm = 12, walk_under_water_one_cm = 13, minecart_one_cm = 14, boat_one_cm = 15, pig_one_cm = 16, horse_one_cm = 17, aviate_one_cm = 18, swim_one_cm = 19, strider_one_cm = 20, jump = 21, drop = 22, damage_dealt = 23, damage_dealt_absorbed = 24, damage_dealt_resisted = 25, damage_taken = 26, damage_blocked_by_shield = 27, damage_absorbed = 28, damage_resisted = 29, deaths = 30, mob_kills = 31, animals_bred = 32, player_kills = 33, fish_caught = 34, talked_to_villager = 35, traded_with_villager = 36, eat_cake_slice = 37, fill_cauldron = 38, use_cauldron = 39, clean_armor = 40, clean_banner = 41, clean_shulker_box = 42, interact_with_brewingstand = 43, interact_with_beacon = 44, inspect_dropper = 45, inspect_hopper = 46, inspect_dispenser = 47, play_noteblock = 48, tune_noteblock = 49, pot_flower = 50, trigger_trapped_chest = 51, open_enderchest = 52, enchant_item = 53, play_record = 54, interact_with_furnace = 55, interact_with_crafting_table = 56, open_chest = 57, sleep_in_bed = 58, open_shulker_box = 59, open_barrel = 60, interact_with_blast_furnace = 61, interact_with_smoker = 62, interact_with_lectern = 63, interact_with_campfire = 64, interact_with_cartography_table = 65, interact_with_loom = 66, interact_with_stonecutter = 67, bell_ring = 68, raid_trigger = 69, raid_win = 70, interact_with_anvil = 71, interact_with_grindstone = 72, target_hit = 73, interact_with_smithing_table = 74,
}

Variants§

§

leave_game = 0

§

play_time = 1

§

total_world_time = 2

§

time_since_death = 3

§

time_since_rest = 4

§

sneak_time = 5

§

walk_one_cm = 6

§

crouch_one_cm = 7

§

sprint_one_cm = 8

§

walk_on_water_one_cm = 9

§

fall_one_cm = 10

§

climb_one_cm = 11

§

fly_one_cm = 12

§

walk_under_water_one_cm = 13

§

minecart_one_cm = 14

§

boat_one_cm = 15

§

pig_one_cm = 16

§

horse_one_cm = 17

§

aviate_one_cm = 18

§

swim_one_cm = 19

§

strider_one_cm = 20

§

jump = 21

§

drop = 22

§

damage_dealt = 23

§

damage_dealt_absorbed = 24

§

damage_dealt_resisted = 25

§

damage_taken = 26

§

damage_blocked_by_shield = 27

§

damage_absorbed = 28

§

damage_resisted = 29

§

deaths = 30

§

mob_kills = 31

§

animals_bred = 32

§

player_kills = 33

§

fish_caught = 34

§

talked_to_villager = 35

§

traded_with_villager = 36

§

eat_cake_slice = 37

§

fill_cauldron = 38

§

use_cauldron = 39

§

clean_armor = 40

§

clean_banner = 41

§

clean_shulker_box = 42

§

interact_with_brewingstand = 43

§

interact_with_beacon = 44

§

inspect_dropper = 45

§

inspect_hopper = 46

§

inspect_dispenser = 47

§

play_noteblock = 48

§

tune_noteblock = 49

§

pot_flower = 50

§

trigger_trapped_chest = 51

§

open_enderchest = 52

§

enchant_item = 53

§

play_record = 54

§

interact_with_furnace = 55

§

interact_with_crafting_table = 56

§

open_chest = 57

§

sleep_in_bed = 58

§

open_shulker_box = 59

§

open_barrel = 60

§

interact_with_blast_furnace = 61

§

interact_with_smoker = 62

§

interact_with_lectern = 63

§

interact_with_campfire = 64

§

interact_with_cartography_table = 65

§

interact_with_loom = 66

§

interact_with_stonecutter = 67

§

bell_ring = 68

§

raid_trigger = 69

§

raid_win = 70

§

interact_with_anvil = 71

§

interact_with_grindstone = 72

§

target_hit = 73

§

interact_with_smithing_table = 74

Implementations§

source§

impl custom_stat

source

pub const fn id(self) -> u8

source

pub const fn new(x: u8) -> Self

source§

impl custom_stat

source

pub const MAX: usize = 74usize

source§

impl custom_stat

source

pub const fn name(self) -> &'static str

source

pub fn parse(name: &[u8]) -> Option<Self>

Trait Implementations§

source§

impl Clone for custom_stat

source§

fn clone(&self) -> custom_stat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for custom_stat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for custom_stat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for custom_stat

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for custom_stat

source§

fn eq(&self, other: &custom_stat) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Read for custom_stat

source§

fn read(n: &mut &[u8]) -> Option<Self>

source§

impl Write for custom_stat

source§

fn len(&self) -> usize

source§

fn write(&self, w: &mut UnsafeWriter)

source§

impl Copy for custom_stat

source§

impl Eq for custom_stat

source§

impl StructuralEq for custom_stat

source§

impl StructuralPartialEq for custom_stat

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.