#[repr(u32)]pub enum BlockKind {
Show 243 variants
Block = 0,
Air = 1,
Amethyst = 2,
AmethystCluster = 3,
Anvil = 4,
AttachedStem = 5,
Azalea = 6,
BambooSapling = 7,
BambooStalk = 8,
Banner = 9,
Barrel = 10,
Barrier = 11,
BaseCoralFan = 12,
BaseCoralPlant = 13,
BaseCoralWallFan = 14,
Beacon = 15,
Bed = 16,
Beehive = 17,
Beetroot = 18,
Bell = 19,
BigDripleaf = 20,
BigDripleafStem = 21,
BlastFurnace = 22,
BrewingStand = 23,
Brushable = 24,
BubbleColumn = 25,
BuddingAmethyst = 26,
Button = 27,
Cactus = 28,
Cake = 29,
CalibratedSculkSensor = 30,
Campfire = 31,
CandleCake = 32,
Candle = 33,
Carpet = 34,
Carrot = 35,
CartographyTable = 36,
Cauldron = 37,
CaveVines = 38,
CaveVinesPlant = 39,
CeilingHangingSign = 40,
Chain = 41,
CherryLeaves = 42,
Chest = 43,
ChiseledBookShelf = 44,
ChorusFlower = 45,
ChorusPlant = 46,
Cocoa = 47,
ColoredFalling = 48,
Command = 49,
Comparator = 50,
Composter = 51,
ConcretePowder = 52,
Conduit = 53,
CopperBulbBlock = 54,
Coral = 55,
CoralFan = 56,
CoralPlant = 57,
CoralWallFan = 58,
Crafter = 59,
CraftingTable = 60,
Crop = 61,
CryingObsidian = 62,
DaylightDetector = 63,
DeadBush = 64,
DecoratedPot = 65,
DetectorRail = 66,
DirtPath = 67,
Dispenser = 68,
Door = 69,
DoublePlant = 70,
DragonEgg = 71,
DropExperience = 72,
Dropper = 73,
EnchantmentTable = 74,
EnderChest = 75,
EndGateway = 76,
EndPortal = 77,
EndPortalFrame = 78,
EndRod = 79,
Farm = 80,
BonemealableFeaturePlacer = 81,
Fence = 82,
FenceGate = 83,
Fire = 84,
FletchingTable = 85,
Flower = 86,
FlowerPot = 87,
Frogspawn = 88,
FrostedIce = 89,
Fungus = 90,
Furnace = 91,
GlazedTerracotta = 92,
GlowLichen = 93,
Grass = 94,
Grindstone = 95,
HalfTransparent = 96,
HangingMoss = 97,
HangingRoots = 98,
Hay = 99,
HeavyCore = 100,
Honey = 101,
Hopper = 102,
HugeMushroom = 103,
Ice = 104,
Infested = 105,
InfestedRotatedPillar = 106,
IronBars = 107,
JackOLantern = 108,
Jigsaw = 109,
Jukebox = 110,
Kelp = 111,
KelpPlant = 112,
Ladder = 113,
Lantern = 114,
LavaCauldron = 115,
LayeredCauldron = 116,
Leaves = 117,
Lectern = 118,
Lever = 119,
Light = 120,
LightningRod = 121,
Liquid = 122,
Loom = 123,
Magma = 124,
MangroveLeaves = 125,
MangrovePropagule = 126,
MangroveRoots = 127,
MossyCarpet = 128,
MovingPiston = 129,
Mud = 130,
Mushroom = 131,
Mycelium = 132,
NetherPortal = 133,
Netherrack = 134,
NetherSprouts = 135,
NetherWart = 136,
Note = 137,
Nylium = 138,
Observer = 139,
Piglinwallskull = 140,
PinkPetals = 141,
PistonBase = 142,
PistonHead = 143,
PitcherCrop = 144,
PlayerHead = 145,
PlayerWallHead = 146,
PointedDripstone = 147,
Potato = 148,
PowderSnow = 149,
Powered = 150,
PoweredRail = 151,
PressurePlate = 152,
Pumpkin = 153,
Rail = 154,
RedstoneLamp = 155,
RedstoneOre = 156,
RedstoneTorch = 157,
RedstoneWallTorch = 158,
RedstoneWire = 159,
Repeater = 160,
RespawnAnchor = 161,
RootedDirt = 162,
Roots = 163,
RotatedPillar = 164,
Sapling = 165,
Scaffolding = 166,
SculkCatalyst = 167,
Sculk = 168,
SculkSensor = 169,
SculkShrieker = 170,
SculkVein = 171,
Seagrass = 172,
SeaPickle = 173,
ShulkerBox = 174,
Skull = 175,
Slab = 176,
Slime = 177,
SmallDripleaf = 178,
SmithingTable = 179,
Smoker = 180,
SnifferEgg = 181,
SnowLayer = 182,
SnowyDirt = 183,
SoulFire = 184,
SoulSand = 185,
Spawner = 186,
CreakingHeart = 187,
Sponge = 188,
SporeBlossom = 189,
StainedGlassPane = 190,
StainedGlass = 191,
Stair = 192,
StandingSign = 193,
Stem = 194,
Stonecutter = 195,
Structure = 196,
StructureVoid = 197,
SugarCane = 198,
SweetBerryBush = 199,
TallFlower = 200,
TallGrass = 201,
TallSeagrass = 202,
Target = 203,
TintedGlass = 204,
Tnt = 205,
TorchflowerCrop = 206,
Torch = 207,
Transparent = 208,
Trapdoor = 209,
TrappedChest = 210,
TrialSpawner = 211,
TripWireHook = 212,
Tripwire = 213,
TurtleEgg = 214,
TwistingVinesPlant = 215,
TwistingVines = 216,
Vault = 217,
Vine = 218,
WallBanner = 219,
WallHangingSign = 220,
WallSign = 221,
WallSkull = 222,
WallTorch = 223,
Wall = 224,
Waterlily = 225,
WaterloggedTransparent = 226,
WeatheringCopperBulb = 227,
WeatheringCopperDoor = 228,
WeatheringCopperFull = 229,
WeatheringCopperGrate = 230,
WeatheringCopperSlab = 231,
WeatheringCopperStair = 232,
WeatheringCopperTrapDoor = 233,
Web = 234,
WeepingVinesPlant = 235,
WeepingVines = 236,
WeightedPressurePlate = 237,
WetSponge = 238,
WitherRose = 239,
WitherSkull = 240,
WitherWallSkull = 241,
WoolCarpet = 242,
}
Variants§
Block = 0
Air = 1
Amethyst = 2
AmethystCluster = 3
Anvil = 4
AttachedStem = 5
Azalea = 6
BambooSapling = 7
BambooStalk = 8
Banner = 9
Barrel = 10
Barrier = 11
BaseCoralFan = 12
BaseCoralPlant = 13
BaseCoralWallFan = 14
Beacon = 15
Bed = 16
Beehive = 17
Beetroot = 18
Bell = 19
BigDripleaf = 20
BigDripleafStem = 21
BlastFurnace = 22
BrewingStand = 23
Brushable = 24
BubbleColumn = 25
BuddingAmethyst = 26
Button = 27
Cactus = 28
Cake = 29
CalibratedSculkSensor = 30
Campfire = 31
CandleCake = 32
Candle = 33
Carpet = 34
Carrot = 35
CartographyTable = 36
Cauldron = 37
CaveVines = 38
CaveVinesPlant = 39
CeilingHangingSign = 40
Chain = 41
CherryLeaves = 42
Chest = 43
ChiseledBookShelf = 44
ChorusFlower = 45
ChorusPlant = 46
Cocoa = 47
ColoredFalling = 48
Command = 49
Comparator = 50
Composter = 51
ConcretePowder = 52
Conduit = 53
CopperBulbBlock = 54
Coral = 55
CoralFan = 56
CoralPlant = 57
CoralWallFan = 58
Crafter = 59
CraftingTable = 60
Crop = 61
CryingObsidian = 62
DaylightDetector = 63
DeadBush = 64
DecoratedPot = 65
DetectorRail = 66
DirtPath = 67
Dispenser = 68
Door = 69
DoublePlant = 70
DragonEgg = 71
DropExperience = 72
Dropper = 73
EnchantmentTable = 74
EnderChest = 75
EndGateway = 76
EndPortal = 77
EndPortalFrame = 78
EndRod = 79
Farm = 80
BonemealableFeaturePlacer = 81
Fence = 82
FenceGate = 83
Fire = 84
FletchingTable = 85
Flower = 86
FlowerPot = 87
Frogspawn = 88
FrostedIce = 89
Fungus = 90
Furnace = 91
GlazedTerracotta = 92
GlowLichen = 93
Grass = 94
Grindstone = 95
HalfTransparent = 96
HangingMoss = 97
HangingRoots = 98
Hay = 99
HeavyCore = 100
Honey = 101
Hopper = 102
HugeMushroom = 103
Ice = 104
Infested = 105
InfestedRotatedPillar = 106
IronBars = 107
JackOLantern = 108
Jigsaw = 109
Jukebox = 110
Kelp = 111
KelpPlant = 112
Ladder = 113
Lantern = 114
LavaCauldron = 115
LayeredCauldron = 116
Leaves = 117
Lectern = 118
Lever = 119
Light = 120
LightningRod = 121
Liquid = 122
Loom = 123
Magma = 124
MangroveLeaves = 125
MangrovePropagule = 126
MangroveRoots = 127
MossyCarpet = 128
MovingPiston = 129
Mud = 130
Mushroom = 131
Mycelium = 132
NetherPortal = 133
Netherrack = 134
NetherSprouts = 135
NetherWart = 136
Note = 137
Nylium = 138
Observer = 139
Piglinwallskull = 140
PinkPetals = 141
PistonBase = 142
PistonHead = 143
PitcherCrop = 144
PlayerHead = 145
PlayerWallHead = 146
PointedDripstone = 147
Potato = 148
PowderSnow = 149
Powered = 150
PoweredRail = 151
PressurePlate = 152
Pumpkin = 153
Rail = 154
RedstoneLamp = 155
RedstoneOre = 156
RedstoneTorch = 157
RedstoneWallTorch = 158
RedstoneWire = 159
Repeater = 160
RespawnAnchor = 161
RootedDirt = 162
Roots = 163
RotatedPillar = 164
Sapling = 165
Scaffolding = 166
SculkCatalyst = 167
Sculk = 168
SculkSensor = 169
SculkShrieker = 170
SculkVein = 171
Seagrass = 172
SeaPickle = 173
ShulkerBox = 174
Skull = 175
Slab = 176
Slime = 177
SmallDripleaf = 178
SmithingTable = 179
Smoker = 180
SnifferEgg = 181
SnowLayer = 182
SnowyDirt = 183
SoulFire = 184
SoulSand = 185
Spawner = 186
CreakingHeart = 187
Sponge = 188
SporeBlossom = 189
StainedGlassPane = 190
StainedGlass = 191
Stair = 192
StandingSign = 193
Stem = 194
Stonecutter = 195
Structure = 196
StructureVoid = 197
SugarCane = 198
SweetBerryBush = 199
TallFlower = 200
TallGrass = 201
TallSeagrass = 202
Target = 203
TintedGlass = 204
Tnt = 205
TorchflowerCrop = 206
Torch = 207
Transparent = 208
Trapdoor = 209
TrappedChest = 210
TrialSpawner = 211
TripWireHook = 212
Tripwire = 213
TurtleEgg = 214
TwistingVinesPlant = 215
TwistingVines = 216
Vault = 217
Vine = 218
WallBanner = 219
WallHangingSign = 220
WallSign = 221
WallSkull = 222
WallTorch = 223
Wall = 224
Waterlily = 225
WaterloggedTransparent = 226
WeatheringCopperBulb = 227
WeatheringCopperDoor = 228
WeatheringCopperFull = 229
WeatheringCopperGrate = 230
WeatheringCopperSlab = 231
WeatheringCopperStair = 232
WeatheringCopperTrapDoor = 233
Web = 234
WeepingVinesPlant = 235
WeepingVines = 236
WeightedPressurePlate = 237
WetSponge = 238
WitherRose = 239
WitherSkull = 240
WitherWallSkull = 241
WoolCarpet = 242
Implementations§
Source§impl BlockKind
impl BlockKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BlockKind
impl<'de> Deserialize<'de> for BlockKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromNbtTag for BlockKind
impl FromNbtTag for BlockKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl McBufReadable for BlockKind
impl McBufReadable for BlockKind
Source§impl McBufWritable for BlockKind
impl McBufWritable for BlockKind
Source§impl ToNbtTag for BlockKind
impl ToNbtTag for BlockKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
impl Copy for BlockKind
impl Eq for BlockKind
impl StructuralPartialEq for BlockKind
Auto Trait Implementations§
impl Freeze for BlockKind
impl RefUnwindSafe for BlockKind
impl Send for BlockKind
impl Sync for BlockKind
impl Unpin for BlockKind
impl UnwindSafe for BlockKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)