Enum block_state_property_value

Source
#[repr(u8)]
pub enum block_state_property_value {
Show 132 variants d_0 = 0, d_1 = 1, d_10 = 2, d_11 = 3, d_12 = 4, d_13 = 5, d_14 = 6, d_15 = 7, d_16 = 8, d_17 = 9, d_18 = 10, d_19 = 11, d_2 = 12, d_20 = 13, d_21 = 14, d_22 = 15, d_23 = 16, d_24 = 17, d_25 = 18, d_3 = 19, d_4 = 20, d_5 = 21, d_6 = 22, d_7 = 23, d_8 = 24, d_9 = 25, active = 26, ascending_east = 27, ascending_north = 28, ascending_south = 29, ascending_west = 30, banjo = 31, base = 32, basedrum = 33, bass = 34, bell = 35, bit = 36, bottom = 37, ceiling = 38, chime = 39, compare = 40, cooldown = 41, corner = 42, cow_bell = 43, creeper = 44, custom_head = 45, data = 46, didgeridoo = 47, double = 48, double_wall = 49, down = 50, down_east = 51, down_north = 52, down_south = 53, down_west = 54, dragon = 55, east = 56, east_up = 57, east_west = 58, ejecting = 59, ejecting_reward = 60, false = 61, floor = 62, flute = 63, foot = 64, frustum = 65, full = 66, guitar = 67, harp = 68, hat = 69, head = 70, inactive = 71, inner_left = 72, inner_right = 73, iron_xylophone = 74, large = 75, left = 76, load = 77, low = 78, lower = 79, middle = 80, none = 81, normal = 82, north = 83, north_east = 84, north_south = 85, north_up = 86, north_west = 87, outer_left = 88, outer_right = 89, partial = 90, piglin = 91, pling = 92, right = 93, save = 94, side = 95, single = 96, single_wall = 97, skeleton = 98, small = 99, snare = 100, south = 101, south_east = 102, south_up = 103, south_west = 104, sticky = 105, straight = 106, subtract = 107, tall = 108, tip = 109, tip_merge = 110, top = 111, true = 112, unlocking = 113, unstable = 114, up = 115, up_east = 116, up_north = 117, up_south = 118, up_west = 119, upper = 120, waiting_for_players = 121, waiting_for_reward_ejection = 122, wall = 123, west = 124, west_up = 125, wither_skeleton = 126, x = 127, xylophone = 128, y = 129, z = 130, zombie = 131,
}

Variants§

§

d_0 = 0

§

d_1 = 1

§

d_10 = 2

§

d_11 = 3

§

d_12 = 4

§

d_13 = 5

§

d_14 = 6

§

d_15 = 7

§

d_16 = 8

§

d_17 = 9

§

d_18 = 10

§

d_19 = 11

§

d_2 = 12

§

d_20 = 13

§

d_21 = 14

§

d_22 = 15

§

d_23 = 16

§

d_24 = 17

§

d_25 = 18

§

d_3 = 19

§

d_4 = 20

§

d_5 = 21

§

d_6 = 22

§

d_7 = 23

§

d_8 = 24

§

d_9 = 25

§

active = 26

§

ascending_east = 27

§

ascending_north = 28

§

ascending_south = 29

§

ascending_west = 30

§

banjo = 31

§

base = 32

§

basedrum = 33

§

bass = 34

§

bell = 35

§

bit = 36

§

bottom = 37

§

ceiling = 38

§

chime = 39

§

compare = 40

§

cooldown = 41

§

corner = 42

§

cow_bell = 43

§

creeper = 44

§

custom_head = 45

§

data = 46

§

didgeridoo = 47

§

double = 48

§

double_wall = 49

§

down = 50

§

down_east = 51

§

down_north = 52

§

down_south = 53

§

down_west = 54

§

dragon = 55

§

east = 56

§

east_up = 57

§

east_west = 58

§

ejecting = 59

§

ejecting_reward = 60

§

false = 61

§

floor = 62

§

flute = 63

§

foot = 64

§

frustum = 65

§

full = 66

§

guitar = 67

§

harp = 68

§

hat = 69

§

head = 70

§

inactive = 71

§

inner_left = 72

§

inner_right = 73

§

iron_xylophone = 74

§

large = 75

§

left = 76

§

load = 77

§

low = 78

§

lower = 79

§

middle = 80

§

none = 81

§

normal = 82

§

north = 83

§

north_east = 84

§

north_south = 85

§

north_up = 86

§

north_west = 87

§

outer_left = 88

§

outer_right = 89

§

partial = 90

§

piglin = 91

§

pling = 92

§

right = 93

§

save = 94

§

side = 95

§

single = 96

§

single_wall = 97

§

skeleton = 98

§

small = 99

§

snare = 100

§

south = 101

§

south_east = 102

§

south_up = 103

§

south_west = 104

§

sticky = 105

§

straight = 106

§

subtract = 107

§

tall = 108

§

tip = 109

§

tip_merge = 110

§

top = 111

§

true = 112

§

unlocking = 113

§

unstable = 114

§

up = 115

§

up_east = 116

§

up_north = 117

§

up_south = 118

§

up_west = 119

§

upper = 120

§

waiting_for_players = 121

§

waiting_for_reward_ejection = 122

§

wall = 123

§

west = 124

§

west_up = 125

§

wither_skeleton = 126

§

x = 127

§

xylophone = 128

§

y = 129

§

z = 130

§

zombie = 131

Implementations§

Source§

impl block_state_property_value

Source

pub const fn id(self) -> u8

Source

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

Source§

impl block_state_property_value

Source

pub const MAX: usize = 131usize

Source§

impl block_state_property_value

Source

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

Source

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

Trait Implementations§

Source§

impl Clone for block_state_property_value

Source§

fn clone(&self) -> block_state_property_value

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 block_state_property_value

Source§

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

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

impl Display for block_state_property_value

Source§

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

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

impl Hash for block_state_property_value

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_value

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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_value

Source§

impl Eq for block_state_property_value

Source§

impl StructuralPartialEq for block_state_property_value

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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,

Source§

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§

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

Source§

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

Source§

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.