block_state_property

Enum block_state_property 

Source
#[repr(u8)]
pub enum block_state_property {
Show 120 variants snowy = 0, axis_x_y_z = 1, stage = 2, age_5 = 3, hanging = 4, waterlogged = 5, level_16 = 6, dusted = 7, distance_7 = 8, persistent = 9, facing_north_east_south_west_up_down = 10, triggered = 11, instrument = 12, note = 13, powered = 14, facing_north_south_west_east = 15, occupied = 16, part = 17, shape_north_south_east_west_ascending_east_ascending_west_ascending_north_ascending_south = 18, extended = 19, half_upper_lower = 20, short = 21, type_normal_sticky = 22, unstable = 23, slot_0_occupied = 24, slot_1_occupied = 25, slot_2_occupied = 26, slot_3_occupied = 27, slot_4_occupied = 28, slot_5_occupied = 29, side_chain = 30, age_16 = 31, east_true_false = 32, north_true_false = 33, south_true_false = 34, up = 35, west_true_false = 36, creaking_heart_state = 37, natural = 38, half_top_bottom = 39, shape_straight_inner_left_inner_right_outer_left_outer_right = 40, type_single_left_right = 41, east_up_side_none = 42, north_up_side_none = 43, power = 44, south_up_side_none = 45, west_up_side_none = 46, age_8 = 47, moisture = 48, lit = 49, rotation = 50, hinge = 51, open = 52, shape_north_south_east_west_ascending_east_ascending_west_ascending_north_ascending_south_south_east_south_west_north_west_north_east = 53, attached = 54, face = 55, layers = 56, has_record = 57, axis_x_z = 58, bites = 59, delay = 60, locked = 61, down = 62, in_wall = 63, type_top_bottom_double = 64, east_none_low_tall = 65, north_none_low_tall = 66, south_none_low_tall = 67, west_none_low_tall = 68, age_4 = 69, has_bottle_0 = 70, has_bottle_1 = 71, has_bottle_2 = 72, level_3 = 73, eye = 74, age_3 = 75, disarmed = 76, conditional = 77, mode_compare_subtract = 78, inverted = 79, enabled = 80, facing_down_north_south_west_east = 81, age_6 = 82, age_2 = 83, age_26 = 84, eggs = 85, hatch = 86, hydration = 87, pickles = 88, leaves = 89, drag = 90, bottom = 91, distance_8 = 92, has_book = 93, attachment = 94, signal_fire = 95, mode_save_load_corner_data = 96, orientation = 97, mode_start_log_fail_accept = 98, level_9 = 99, honey_level = 100, charges = 101, candles = 102, sculk_sensor_phase = 103, bloom = 104, can_summon = 105, shrieking = 106, copper_golem_pose = 107, thickness = 108, vertical_direction = 109, berries = 110, flower_amount = 111, segment_amount = 112, tilt = 113, cracked = 114, crafting = 115, ominous = 116, trial_spawner_state = 117, vault_state = 118, tip = 119,
}

Variants§

§

snowy = 0

§

axis_x_y_z = 1

§

stage = 2

§

age_5 = 3

§

hanging = 4

§

waterlogged = 5

§

level_16 = 6

§

dusted = 7

§

distance_7 = 8

§

persistent = 9

§

facing_north_east_south_west_up_down = 10

§

triggered = 11

§

instrument = 12

§

note = 13

§

powered = 14

§

facing_north_south_west_east = 15

§

occupied = 16

§

part = 17

§

shape_north_south_east_west_ascending_east_ascending_west_ascending_north_ascending_south = 18

§

extended = 19

§

half_upper_lower = 20

§

short = 21

§

type_normal_sticky = 22

§

unstable = 23

§

slot_0_occupied = 24

§

slot_1_occupied = 25

§

slot_2_occupied = 26

§

slot_3_occupied = 27

§

slot_4_occupied = 28

§

slot_5_occupied = 29

§

side_chain = 30

§

age_16 = 31

§

east_true_false = 32

§

north_true_false = 33

§

south_true_false = 34

§

up = 35

§

west_true_false = 36

§

creaking_heart_state = 37

§

natural = 38

§

half_top_bottom = 39

§

shape_straight_inner_left_inner_right_outer_left_outer_right = 40

§

type_single_left_right = 41

§

east_up_side_none = 42

§

north_up_side_none = 43

§

power = 44

§

south_up_side_none = 45

§

west_up_side_none = 46

§

age_8 = 47

§

moisture = 48

§

lit = 49

§

rotation = 50

§

hinge = 51

§

open = 52

§

shape_north_south_east_west_ascending_east_ascending_west_ascending_north_ascending_south_south_east_south_west_north_west_north_east = 53

§

attached = 54

§

face = 55

§

layers = 56

§

has_record = 57

§

axis_x_z = 58

§

bites = 59

§

delay = 60

§

locked = 61

§

down = 62

§

in_wall = 63

§

type_top_bottom_double = 64

§

east_none_low_tall = 65

§

north_none_low_tall = 66

§

south_none_low_tall = 67

§

west_none_low_tall = 68

§

age_4 = 69

§

has_bottle_0 = 70

§

has_bottle_1 = 71

§

has_bottle_2 = 72

§

level_3 = 73

§

eye = 74

§

age_3 = 75

§

disarmed = 76

§

conditional = 77

§

mode_compare_subtract = 78

§

inverted = 79

§

enabled = 80

§

facing_down_north_south_west_east = 81

§

age_6 = 82

§

age_2 = 83

§

age_26 = 84

§

eggs = 85

§

hatch = 86

§

hydration = 87

§

pickles = 88

§

leaves = 89

§

drag = 90

§

bottom = 91

§

distance_8 = 92

§

has_book = 93

§

attachment = 94

§

signal_fire = 95

§

mode_save_load_corner_data = 96

§

orientation = 97

§

mode_start_log_fail_accept = 98

§

level_9 = 99

§

honey_level = 100

§

charges = 101

§

candles = 102

§

sculk_sensor_phase = 103

§

bloom = 104

§

can_summon = 105

§

shrieking = 106

§

copper_golem_pose = 107

§

thickness = 108

§

vertical_direction = 109

§

berries = 110

§

flower_amount = 111

§

segment_amount = 112

§

tilt = 113

§

cracked = 114

§

crafting = 115

§

ominous = 116

§

trial_spawner_state = 117

§

vault_state = 118

§

tip = 119

Implementations§

Source§

impl block_state_property

Source

pub const MAX: u8 = 119u8

Source

pub const fn new(n: u8) -> Option<Self>

Source

pub const fn id(self) -> u8

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 duplicate of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for block_state_property

Source§

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

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

impl Default for block_state_property

Source§

fn default() -> Self

Returns the “default value” for a type. 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§

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

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

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

Source§

impl Eq for block_state_property

Source§

impl StructuralPartialEq for block_state_property

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

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

§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

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

Performs the conversion.