Enum block_type

Source
#[repr(u8)]
pub enum block_type {
Show 245 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, cauldron = 37, cave_vines = 38, cave_vines_plant = 39, ceiling_hanging_sign = 40, chain = 41, chest = 42, chiseled_book_shelf = 43, chorus_flower = 44, chorus_plant = 45, cocoa = 46, colored_falling = 47, command = 48, comparator = 49, composter = 50, concrete_powder = 51, conduit = 52, copper_bulb_block = 53, coral = 54, coral_fan = 55, coral_plant = 56, coral_wall_fan = 57, crafter = 58, crafting_table = 59, crop = 60, crying_obsidian = 61, daylight_detector = 62, dead_bush = 63, decorated_pot = 64, detector_rail = 65, dirt_path = 66, dispenser = 67, door = 68, double_plant = 69, dragon_egg = 70, drop_experience = 71, dropper = 72, enchantment_table = 73, ender_chest = 74, end_gateway = 75, end_portal = 76, end_portal_frame = 77, end_rod = 78, eyeblossom = 79, farm = 80, bonemealable_feature_placer = 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_moss = 97, hanging_roots = 98, hay = 99, heavy_core = 100, honey = 101, hopper = 102, huge_mushroom = 103, ice = 104, infested = 105, infested_rotated_pillar = 106, iron_bars = 107, jack_o_lantern = 108, jigsaw = 109, jukebox = 110, kelp = 111, kelp_plant = 112, ladder = 113, lantern = 114, lava_cauldron = 115, layered_cauldron = 116, leaves = 117, lectern = 118, lever = 119, light = 120, lightning_rod = 121, liquid = 122, loom = 123, magma = 124, mangrove_leaves = 125, mangrove_propagule = 126, mangrove_roots = 127, mossy_carpet = 128, moving_piston = 129, mud = 130, multiface = 131, mushroom = 132, mycelium = 133, nether_portal = 134, netherrack = 135, nether_sprouts = 136, nether_wart = 137, note = 138, nylium = 139, observer = 140, piglinwallskull = 141, particle_leaves = 142, pink_petals = 143, piston_base = 144, piston_head = 145, pitcher_crop = 146, player_head = 147, player_wall_head = 148, pointed_dripstone = 149, potato = 150, powder_snow = 151, powered = 152, powered_rail = 153, pressure_plate = 154, pumpkin = 155, rail = 156, redstone_lamp = 157, redstone_ore = 158, redstone_torch = 159, redstone_wall_torch = 160, redstone_wire = 161, repeater = 162, respawn_anchor = 163, rooted_dirt = 164, roots = 165, rotated_pillar = 166, sapling = 167, scaffolding = 168, sculk_catalyst = 169, sculk = 170, sculk_sensor = 171, sculk_shrieker = 172, sculk_vein = 173, seagrass = 174, sea_pickle = 175, shulker_box = 176, skull = 177, slab = 178, slime = 179, small_dripleaf = 180, smithing_table = 181, smoker = 182, sniffer_egg = 183, snow_layer = 184, snowy_dirt = 185, soul_fire = 186, soul_sand = 187, spawner = 188, creaking_heart = 189, sponge = 190, spore_blossom = 191, stained_glass_pane = 192, stained_glass = 193, stair = 194, standing_sign = 195, stem = 196, stonecutter = 197, structure = 198, structure_void = 199, sugar_cane = 200, sweet_berry_bush = 201, tall_flower = 202, tall_grass = 203, tall_seagrass = 204, target = 205, tinted_glass = 206, tnt = 207, torchflower_crop = 208, torch = 209, transparent = 210, trapdoor = 211, trapped_chest = 212, trial_spawner = 213, trip_wire_hook = 214, tripwire = 215, turtle_egg = 216, twisting_vines_plant = 217, twisting_vines = 218, vault = 219, vine = 220, wall_banner = 221, wall_hanging_sign = 222, wall_sign = 223, wall_skull = 224, wall_torch = 225, wall = 226, waterlily = 227, waterlogged_transparent = 228, weathering_copper_bulb = 229, weathering_copper_door = 230, weathering_copper_full = 231, weathering_copper_grate = 232, weathering_copper_slab = 233, weathering_copper_stair = 234, weathering_copper_trap_door = 235, web = 236, weeping_vines_plant = 237, weeping_vines = 238, weighted_pressure_plate = 239, wet_sponge = 240, wither_rose = 241, wither_skull = 242, wither_wall_skull = 243, wool_carpet = 244,
}

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

§

cauldron = 37

§

cave_vines = 38

§

cave_vines_plant = 39

§

ceiling_hanging_sign = 40

§

chain = 41

§

chest = 42

§

chiseled_book_shelf = 43

§

chorus_flower = 44

§

chorus_plant = 45

§

cocoa = 46

§

colored_falling = 47

§

command = 48

§

comparator = 49

§

composter = 50

§

concrete_powder = 51

§

conduit = 52

§

copper_bulb_block = 53

§

coral = 54

§

coral_fan = 55

§

coral_plant = 56

§

coral_wall_fan = 57

§

crafter = 58

§

crafting_table = 59

§

crop = 60

§

crying_obsidian = 61

§

daylight_detector = 62

§

dead_bush = 63

§

decorated_pot = 64

§

detector_rail = 65

§

dirt_path = 66

§

dispenser = 67

§

door = 68

§

double_plant = 69

§

dragon_egg = 70

§

drop_experience = 71

§

dropper = 72

§

enchantment_table = 73

§

ender_chest = 74

§

end_gateway = 75

§

end_portal = 76

§

end_portal_frame = 77

§

end_rod = 78

§

eyeblossom = 79

§

farm = 80

§

bonemealable_feature_placer = 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_moss = 97

§

hanging_roots = 98

§

hay = 99

§

heavy_core = 100

§

honey = 101

§

hopper = 102

§

huge_mushroom = 103

§

ice = 104

§

infested = 105

§

infested_rotated_pillar = 106

§

iron_bars = 107

§

jack_o_lantern = 108

§

jigsaw = 109

§

jukebox = 110

§

kelp = 111

§

kelp_plant = 112

§

ladder = 113

§

lantern = 114

§

lava_cauldron = 115

§

layered_cauldron = 116

§

leaves = 117

§

lectern = 118

§

lever = 119

§

light = 120

§

lightning_rod = 121

§

liquid = 122

§

loom = 123

§

magma = 124

§

mangrove_leaves = 125

§

mangrove_propagule = 126

§

mangrove_roots = 127

§

mossy_carpet = 128

§

moving_piston = 129

§

mud = 130

§

multiface = 131

§

mushroom = 132

§

mycelium = 133

§

nether_portal = 134

§

netherrack = 135

§

nether_sprouts = 136

§

nether_wart = 137

§

note = 138

§

nylium = 139

§

observer = 140

§

piglinwallskull = 141

§

particle_leaves = 142

§

pink_petals = 143

§

piston_base = 144

§

piston_head = 145

§

pitcher_crop = 146

§

player_head = 147

§

player_wall_head = 148

§

pointed_dripstone = 149

§

potato = 150

§

powder_snow = 151

§

powered = 152

§

powered_rail = 153

§

pressure_plate = 154

§

pumpkin = 155

§

rail = 156

§

redstone_lamp = 157

§

redstone_ore = 158

§

redstone_torch = 159

§

redstone_wall_torch = 160

§

redstone_wire = 161

§

repeater = 162

§

respawn_anchor = 163

§

rooted_dirt = 164

§

roots = 165

§

rotated_pillar = 166

§

sapling = 167

§

scaffolding = 168

§

sculk_catalyst = 169

§

sculk = 170

§

sculk_sensor = 171

§

sculk_shrieker = 172

§

sculk_vein = 173

§

seagrass = 174

§

sea_pickle = 175

§

shulker_box = 176

§

skull = 177

§

slab = 178

§

slime = 179

§

small_dripleaf = 180

§

smithing_table = 181

§

smoker = 182

§

sniffer_egg = 183

§

snow_layer = 184

§

snowy_dirt = 185

§

soul_fire = 186

§

soul_sand = 187

§

spawner = 188

§

creaking_heart = 189

§

sponge = 190

§

spore_blossom = 191

§

stained_glass_pane = 192

§

stained_glass = 193

§

stair = 194

§

standing_sign = 195

§

stem = 196

§

stonecutter = 197

§

structure = 198

§

structure_void = 199

§

sugar_cane = 200

§

sweet_berry_bush = 201

§

tall_flower = 202

§

tall_grass = 203

§

tall_seagrass = 204

§

target = 205

§

tinted_glass = 206

§

tnt = 207

§

torchflower_crop = 208

§

torch = 209

§

transparent = 210

§

trapdoor = 211

§

trapped_chest = 212

§

trial_spawner = 213

§

trip_wire_hook = 214

§

tripwire = 215

§

turtle_egg = 216

§

twisting_vines_plant = 217

§

twisting_vines = 218

§

vault = 219

§

vine = 220

§

wall_banner = 221

§

wall_hanging_sign = 222

§

wall_sign = 223

§

wall_skull = 224

§

wall_torch = 225

§

wall = 226

§

waterlily = 227

§

waterlogged_transparent = 228

§

weathering_copper_bulb = 229

§

weathering_copper_door = 230

§

weathering_copper_full = 231

§

weathering_copper_grate = 232

§

weathering_copper_slab = 233

§

weathering_copper_stair = 234

§

weathering_copper_trap_door = 235

§

web = 236

§

weeping_vines_plant = 237

§

weeping_vines = 238

§

weighted_pressure_plate = 239

§

wet_sponge = 240

§

wither_rose = 241

§

wither_skull = 242

§

wither_wall_skull = 243

§

wool_carpet = 244

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

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

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 Read for block_type

Source§

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

Source§

impl Write for block_type

Source§

unsafe fn sz(&self) -> usize

Safety Read more
Source§

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

Safety Read more
Source§

impl Copy for block_type

Source§

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