Enum minecraft_data::block_state_property

source ·
#[repr(u8)]
pub enum block_state_property {
Show 89 variants snowy = 0, stage = 1, level_16 = 2, axis_x_y_z = 3, distance_7 = 4, persistent = 5, facing_north_east_south_west_up_down = 6, triggered = 7, instrument = 8, note = 9, powered = 10, facing_north_south_west_east = 11, occupied = 12, part = 13, shape_north_south_east_west_ascending_east_ascending_west_ascending_north_ascending_south = 14, extended = 15, half_upper_lower = 16, short = 17, type_normal_sticky = 18, unstable = 19, age_16 = 20, east_true_false = 21, north_true_false = 22, south_true_false = 23, up = 24, west_true_false = 25, half_top_bottom = 26, shape_straight_inner_left_inner_right_outer_left_outer_right = 27, waterlogged = 28, type_single_left_right = 29, east_up_side_none = 30, north_up_side_none = 31, power = 32, south_up_side_none = 33, west_up_side_none = 34, age_8 = 35, moisture = 36, lit = 37, rotation = 38, hinge = 39, open = 40, shape_north_south_east_west_ascending_east_ascending_west_ascending_north_ascending_south_south_east_south_west_north_west_north_east = 41, face = 42, layers = 43, has_record = 44, axis_x_z = 45, bites = 46, delay = 47, locked = 48, down = 49, in_wall = 50, age_4 = 51, has_bottle_0 = 52, has_bottle_1 = 53, has_bottle_2 = 54, level_4 = 55, eye = 56, age_3 = 57, attached = 58, disarmed = 59, conditional = 60, east_none_low_tall = 61, north_none_low_tall = 62, south_none_low_tall = 63, west_none_low_tall = 64, mode_compare_subtract = 65, inverted = 66, enabled = 67, facing_down_north_south_west_east = 68, type_top_bottom_double = 69, age_6 = 70, age_26 = 71, eggs = 72, hatch = 73, pickles = 74, age_2 = 75, leaves = 76, drag = 77, bottom = 78, distance_8 = 79, has_book = 80, attachment = 81, hanging = 82, signal_fire = 83, mode_save_load_corner_data = 84, orientation = 85, level_9 = 86, honey_level = 87, charges = 88,
}

Variants§

§

snowy = 0

§

stage = 1

§

level_16 = 2

§

axis_x_y_z = 3

§

distance_7 = 4

§

persistent = 5

§

facing_north_east_south_west_up_down = 6

§

triggered = 7

§

instrument = 8

§

note = 9

§

powered = 10

§

facing_north_south_west_east = 11

§

occupied = 12

§

part = 13

§

shape_north_south_east_west_ascending_east_ascending_west_ascending_north_ascending_south = 14

§

extended = 15

§

half_upper_lower = 16

§

short = 17

§

type_normal_sticky = 18

§

unstable = 19

§

age_16 = 20

§

east_true_false = 21

§

north_true_false = 22

§

south_true_false = 23

§

up = 24

§

west_true_false = 25

§

half_top_bottom = 26

§

shape_straight_inner_left_inner_right_outer_left_outer_right = 27

§

waterlogged = 28

§

type_single_left_right = 29

§

east_up_side_none = 30

§

north_up_side_none = 31

§

power = 32

§

south_up_side_none = 33

§

west_up_side_none = 34

§

age_8 = 35

§

moisture = 36

§

lit = 37

§

rotation = 38

§

hinge = 39

§

open = 40

§

shape_north_south_east_west_ascending_east_ascending_west_ascending_north_ascending_south_south_east_south_west_north_west_north_east = 41

§

face = 42

§

layers = 43

§

has_record = 44

§

axis_x_z = 45

§

bites = 46

§

delay = 47

§

locked = 48

§

down = 49

§

in_wall = 50

§

age_4 = 51

§

has_bottle_0 = 52

§

has_bottle_1 = 53

§

has_bottle_2 = 54

§

level_4 = 55

§

eye = 56

§

age_3 = 57

§

attached = 58

§

disarmed = 59

§

conditional = 60

§

east_none_low_tall = 61

§

north_none_low_tall = 62

§

south_none_low_tall = 63

§

west_none_low_tall = 64

§

mode_compare_subtract = 65

§

inverted = 66

§

enabled = 67

§

facing_down_north_south_west_east = 68

§

type_top_bottom_double = 69

§

age_6 = 70

§

age_26 = 71

§

eggs = 72

§

hatch = 73

§

pickles = 74

§

age_2 = 75

§

leaves = 76

§

drag = 77

§

bottom = 78

§

distance_8 = 79

§

has_book = 80

§

attachment = 81

§

hanging = 82

§

signal_fire = 83

§

mode_save_load_corner_data = 84

§

orientation = 85

§

level_9 = 86

§

honey_level = 87

§

charges = 88

Implementations§

source§

impl block_state_property

source

pub const fn id(self) -> u8

source

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

source§

impl block_state_property

source

pub const fn key(self) -> block_state_property_key

source

pub const fn val(self) -> &'static [block_state_property_value]

Trait Implementations§

source§

impl Clone for block_state_property

source§

fn clone(&self) -> block_state_property

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 Hash for block_state_property

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 block_state_property

source§

fn eq(&self, other: &block_state_property) -> 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 Copy for block_state_property

source§

impl Eq for block_state_property

source§

impl StructuralPartialEq for block_state_property

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