Enum minecraft_data::custom_stat

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

Variants§

§

leave_game = 0

§

play_one_minute = 1

§

time_since_death = 2

§

time_since_rest = 3

§

sneak_time = 4

§

walk_one_cm = 5

§

crouch_one_cm = 6

§

sprint_one_cm = 7

§

walk_on_water_one_cm = 8

§

fall_one_cm = 9

§

climb_one_cm = 10

§

fly_one_cm = 11

§

walk_under_water_one_cm = 12

§

minecart_one_cm = 13

§

boat_one_cm = 14

§

pig_one_cm = 15

§

horse_one_cm = 16

§

aviate_one_cm = 17

§

swim_one_cm = 18

§

strider_one_cm = 19

§

jump = 20

§

drop = 21

§

damage_dealt = 22

§

damage_dealt_absorbed = 23

§

damage_dealt_resisted = 24

§

damage_taken = 25

§

damage_blocked_by_shield = 26

§

damage_absorbed = 27

§

damage_resisted = 28

§

deaths = 29

§

mob_kills = 30

§

animals_bred = 31

§

player_kills = 32

§

fish_caught = 33

§

talked_to_villager = 34

§

traded_with_villager = 35

§

eat_cake_slice = 36

§

fill_cauldron = 37

§

use_cauldron = 38

§

clean_armor = 39

§

clean_banner = 40

§

clean_shulker_box = 41

§

interact_with_brewingstand = 42

§

interact_with_beacon = 43

§

inspect_dropper = 44

§

inspect_hopper = 45

§

inspect_dispenser = 46

§

play_noteblock = 47

§

tune_noteblock = 48

§

pot_flower = 49

§

trigger_trapped_chest = 50

§

open_enderchest = 51

§

enchant_item = 52

§

play_record = 53

§

interact_with_furnace = 54

§

interact_with_crafting_table = 55

§

open_chest = 56

§

sleep_in_bed = 57

§

open_shulker_box = 58

§

open_barrel = 59

§

interact_with_blast_furnace = 60

§

interact_with_smoker = 61

§

interact_with_lectern = 62

§

interact_with_campfire = 63

§

interact_with_cartography_table = 64

§

interact_with_loom = 65

§

interact_with_stonecutter = 66

§

bell_ring = 67

§

raid_trigger = 68

§

raid_win = 69

§

interact_with_anvil = 70

§

interact_with_grindstone = 71

§

target_hit = 72

§

interact_with_smithing_table = 73

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 = 73usize

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 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.