#[repr(u8)]
pub enum block_type {
Show 239 variants block = 0, air = 1, amethyst = 2, amethyst_cluster = 3, anvil = 4, attached_stem = 5, azalea = 6, bamboo_sapling = 7, bamboo_stalk = 8, banner = 9, barrel = 10, barrier = 11, base_coral_fan = 12, base_coral_plant = 13, base_coral_wall_fan = 14, beacon = 15, bed = 16, beehive = 17, beetroot = 18, bell = 19, big_dripleaf = 20, big_dripleaf_stem = 21, blast_furnace = 22, brewing_stand = 23, brushable = 24, bubble_column = 25, budding_amethyst = 26, button = 27, cactus = 28, cake = 29, calibrated_sculk_sensor = 30, campfire = 31, candle_cake = 32, candle = 33, carpet = 34, carrot = 35, cartography_table = 36, carved_pumpkin = 37, cauldron = 38, cave_vines = 39, cave_vines_plant = 40, ceiling_hanging_sign = 41, chain = 42, cherry_leaves = 43, chest = 44, chiseled_book_shelf = 45, chorus_flower = 46, chorus_plant = 47, cocoa = 48, colored_falling = 49, command = 50, comparator = 51, composter = 52, concrete_powder = 53, conduit = 54, copper_bulb_block = 55, coral = 56, coral_fan = 57, coral_plant = 58, coral_wall_fan = 59, crafter = 60, crafting_table = 61, crop = 62, crying_obsidian = 63, daylight_detector = 64, dead_bush = 65, decorated_pot = 66, detector_rail = 67, dirt_path = 68, dispenser = 69, door = 70, double_plant = 71, dragon_egg = 72, drop_experience = 73, dropper = 74, enchantment_table = 75, ender_chest = 76, end_gateway = 77, end_portal = 78, end_portal_frame = 79, end_rod = 80, farm = 81, fence = 82, fence_gate = 83, fire = 84, fletching_table = 85, flower = 86, flower_pot = 87, frogspawn = 88, frosted_ice = 89, fungus = 90, furnace = 91, glazed_terracotta = 92, glow_lichen = 93, grass = 94, grindstone = 95, half_transparent = 96, hanging_roots = 97, hay = 98, honey = 99, hopper = 100, huge_mushroom = 101, ice = 102, infested = 103, infested_rotated_pillar = 104, iron_bars = 105, jack_o_lantern = 106, jigsaw = 107, jukebox = 108, kelp = 109, kelp_plant = 110, ladder = 111, lantern = 112, lava_cauldron = 113, layered_cauldron = 114, leaves = 115, lectern = 116, lever = 117, light = 118, lightning_rod = 119, liquid = 120, loom = 121, magma = 122, mangrove_leaves = 123, mangrove_propagule = 124, mangrove_roots = 125, moss = 126, moving_piston = 127, mud = 128, mushroom = 129, mycelium = 130, nether_portal = 131, netherrack = 132, nether_sprouts = 133, nether_wart = 134, note = 135, nylium = 136, observer = 137, piglinwallskull = 138, pink_petals = 139, piston_base = 140, piston_head = 141, pitcher_crop = 142, player_head = 143, player_wall_head = 144, pointed_dripstone = 145, potato = 146, powder_snow = 147, powered = 148, powered_rail = 149, pressure_plate = 150, pumpkin = 151, rail = 152, redstone_lamp = 153, redstone_ore = 154, redstone_torch = 155, redstone_wall_torch = 156, redstone_wire = 157, repeater = 158, respawn_anchor = 159, rooted_dirt = 160, roots = 161, rotated_pillar = 162, sapling = 163, scaffolding = 164, sculk_catalyst = 165, sculk = 166, sculk_sensor = 167, sculk_shrieker = 168, sculk_vein = 169, seagrass = 170, sea_pickle = 171, shulker_box = 172, skull = 173, slab = 174, slime = 175, small_dripleaf = 176, smithing_table = 177, smoker = 178, sniffer_egg = 179, snow_layer = 180, snowy_dirt = 181, soul_fire = 182, soul_sand = 183, spawner = 184, sponge = 185, spore_blossom = 186, stained_glass_pane = 187, stained_glass = 188, stair = 189, standing_sign = 190, stem = 191, stonecutter = 192, structure = 193, structure_void = 194, sugar_cane = 195, sweet_berry_bush = 196, tall_flower = 197, tall_grass = 198, tall_seagrass = 199, target = 200, tinted_glass = 201, tnt = 202, torchflower_crop = 203, torch = 204, transparent = 205, trapdoor = 206, trapped_chest = 207, trial_spawner = 208, trip_wire_hook = 209, tripwire = 210, turtle_egg = 211, twisting_vines_plant = 212, twisting_vines = 213, vine = 214, wall_banner = 215, wall_hanging_sign = 216, wall_sign = 217, wall_skull = 218, wall_torch = 219, wall = 220, waterlily = 221, waterlogged_transparent = 222, weathering_copper_bulb = 223, weathering_copper_door = 224, weathering_copper_full = 225, weathering_copper_grate = 226, weathering_copper_slab = 227, weathering_copper_stair = 228, weathering_copper_trap_door = 229, web = 230, weeping_vines_plant = 231, weeping_vines = 232, weighted_pressure_plate = 233, wet_sponge = 234, wither_rose = 235, wither_skull = 236, wither_wall_skull = 237, wool_carpet = 238,
}

Variants§

§

block = 0

§

air = 1

§

amethyst = 2

§

amethyst_cluster = 3

§

anvil = 4

§

attached_stem = 5

§

azalea = 6

§

bamboo_sapling = 7

§

bamboo_stalk = 8

§

banner = 9

§

barrel = 10

§

barrier = 11

§

base_coral_fan = 12

§

base_coral_plant = 13

§

base_coral_wall_fan = 14

§

beacon = 15

§

bed = 16

§

beehive = 17

§

beetroot = 18

§

bell = 19

§

big_dripleaf = 20

§

big_dripleaf_stem = 21

§

blast_furnace = 22

§

brewing_stand = 23

§

brushable = 24

§

bubble_column = 25

§

budding_amethyst = 26

§

button = 27

§

cactus = 28

§

cake = 29

§

calibrated_sculk_sensor = 30

§

campfire = 31

§

candle_cake = 32

§

candle = 33

§

carpet = 34

§

carrot = 35

§

cartography_table = 36

§

carved_pumpkin = 37

§

cauldron = 38

§

cave_vines = 39

§

cave_vines_plant = 40

§

ceiling_hanging_sign = 41

§

chain = 42

§

cherry_leaves = 43

§

chest = 44

§

chiseled_book_shelf = 45

§

chorus_flower = 46

§

chorus_plant = 47

§

cocoa = 48

§

colored_falling = 49

§

command = 50

§

comparator = 51

§

composter = 52

§

concrete_powder = 53

§

conduit = 54

§

copper_bulb_block = 55

§

coral = 56

§

coral_fan = 57

§

coral_plant = 58

§

coral_wall_fan = 59

§

crafter = 60

§

crafting_table = 61

§

crop = 62

§

crying_obsidian = 63

§

daylight_detector = 64

§

dead_bush = 65

§

decorated_pot = 66

§

detector_rail = 67

§

dirt_path = 68

§

dispenser = 69

§

door = 70

§

double_plant = 71

§

dragon_egg = 72

§

drop_experience = 73

§

dropper = 74

§

enchantment_table = 75

§

ender_chest = 76

§

end_gateway = 77

§

end_portal = 78

§

end_portal_frame = 79

§

end_rod = 80

§

farm = 81

§

fence = 82

§

fence_gate = 83

§

fire = 84

§

fletching_table = 85

§

flower = 86

§

flower_pot = 87

§

frogspawn = 88

§

frosted_ice = 89

§

fungus = 90

§

furnace = 91

§

glazed_terracotta = 92

§

glow_lichen = 93

§

grass = 94

§

grindstone = 95

§

half_transparent = 96

§

hanging_roots = 97

§

hay = 98

§

honey = 99

§

hopper = 100

§

huge_mushroom = 101

§

ice = 102

§

infested = 103

§

infested_rotated_pillar = 104

§

iron_bars = 105

§

jack_o_lantern = 106

§

jigsaw = 107

§

jukebox = 108

§

kelp = 109

§

kelp_plant = 110

§

ladder = 111

§

lantern = 112

§

lava_cauldron = 113

§

layered_cauldron = 114

§

leaves = 115

§

lectern = 116

§

lever = 117

§

light = 118

§

lightning_rod = 119

§

liquid = 120

§

loom = 121

§

magma = 122

§

mangrove_leaves = 123

§

mangrove_propagule = 124

§

mangrove_roots = 125

§

moss = 126

§

moving_piston = 127

§

mud = 128

§

mushroom = 129

§

mycelium = 130

§

nether_portal = 131

§

netherrack = 132

§

nether_sprouts = 133

§

nether_wart = 134

§

note = 135

§

nylium = 136

§

observer = 137

§

piglinwallskull = 138

§

pink_petals = 139

§

piston_base = 140

§

piston_head = 141

§

pitcher_crop = 142

§

player_head = 143

§

player_wall_head = 144

§

pointed_dripstone = 145

§

potato = 146

§

powder_snow = 147

§

powered = 148

§

powered_rail = 149

§

pressure_plate = 150

§

pumpkin = 151

§

rail = 152

§

redstone_lamp = 153

§

redstone_ore = 154

§

redstone_torch = 155

§

redstone_wall_torch = 156

§

redstone_wire = 157

§

repeater = 158

§

respawn_anchor = 159

§

rooted_dirt = 160

§

roots = 161

§

rotated_pillar = 162

§

sapling = 163

§

scaffolding = 164

§

sculk_catalyst = 165

§

sculk = 166

§

sculk_sensor = 167

§

sculk_shrieker = 168

§

sculk_vein = 169

§

seagrass = 170

§

sea_pickle = 171

§

shulker_box = 172

§

skull = 173

§

slab = 174

§

slime = 175

§

small_dripleaf = 176

§

smithing_table = 177

§

smoker = 178

§

sniffer_egg = 179

§

snow_layer = 180

§

snowy_dirt = 181

§

soul_fire = 182

§

soul_sand = 183

§

spawner = 184

§

sponge = 185

§

spore_blossom = 186

§

stained_glass_pane = 187

§

stained_glass = 188

§

stair = 189

§

standing_sign = 190

§

stem = 191

§

stonecutter = 192

§

structure = 193

§

structure_void = 194

§

sugar_cane = 195

§

sweet_berry_bush = 196

§

tall_flower = 197

§

tall_grass = 198

§

tall_seagrass = 199

§

target = 200

§

tinted_glass = 201

§

tnt = 202

§

torchflower_crop = 203

§

torch = 204

§

transparent = 205

§

trapdoor = 206

§

trapped_chest = 207

§

trial_spawner = 208

§

trip_wire_hook = 209

§

tripwire = 210

§

turtle_egg = 211

§

twisting_vines_plant = 212

§

twisting_vines = 213

§

vine = 214

§

wall_banner = 215

§

wall_hanging_sign = 216

§

wall_sign = 217

§

wall_skull = 218

§

wall_torch = 219

§

wall = 220

§

waterlily = 221

§

waterlogged_transparent = 222

§

weathering_copper_bulb = 223

§

weathering_copper_door = 224

§

weathering_copper_full = 225

§

weathering_copper_grate = 226

§

weathering_copper_slab = 227

§

weathering_copper_stair = 228

§

weathering_copper_trap_door = 229

§

web = 230

§

weeping_vines_plant = 231

§

weeping_vines = 232

§

weighted_pressure_plate = 233

§

wet_sponge = 234

§

wither_rose = 235

§

wither_skull = 236

§

wither_wall_skull = 237

§

wool_carpet = 238

Implementations§

source§

impl block_type

source

pub const fn id(self) -> u8

source

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

source§

impl block_type

source

pub const MAX: usize = 238usize

source§

impl block_type

source

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

source

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

Trait Implementations§

source§

impl Clone for block_type

source§

fn clone(&self) -> block_type

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_type

source§

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

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

impl Display for block_type

source§

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

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

impl Hash for block_type

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_type

source§

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

source§

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

source§

impl Write for block_type

source§

fn len(&self) -> usize

source§

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

source§

impl Copy for block_type

source§

impl Eq for block_type

source§

impl StructuralEq for block_type

source§

impl StructuralPartialEq for block_type

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.