#[repr(u32)]pub enum BlockKind {
Show 263 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,
Bush = 27,
Button = 28,
Cactus = 29,
CactusFlower = 30,
Cake = 31,
CalibratedSculkSensor = 32,
Campfire = 33,
CandleCake = 34,
Candle = 35,
Carpet = 36,
Carrot = 37,
CartographyTable = 38,
Cauldron = 39,
CaveVines = 40,
CaveVinesPlant = 41,
CeilingHangingSign = 42,
Chain = 43,
Chest = 44,
ChiseledBookShelf = 45,
ChorusFlower = 46,
ChorusPlant = 47,
Cocoa = 48,
ColoredFalling = 49,
Command = 50,
Comparator = 51,
Composter = 52,
ConcretePowder = 53,
Conduit = 54,
CopperBulbBlock = 55,
CopperChest = 56,
CopperGolemStatue = 57,
Coral = 58,
CoralFan = 59,
CoralPlant = 60,
CoralWallFan = 61,
Crafter = 62,
CraftingTable = 63,
Crop = 64,
CryingObsidian = 65,
DaylightDetector = 66,
DryVegetation = 67,
DecoratedPot = 68,
DetectorRail = 69,
DirtPath = 70,
Dispenser = 71,
Door = 72,
DoublePlant = 73,
DragonEgg = 74,
DriedGhast = 75,
DropExperience = 76,
Dropper = 77,
EnchantmentTable = 78,
EnderChest = 79,
EndGateway = 80,
EndPortal = 81,
EndPortalFrame = 82,
EndRod = 83,
Eyeblossom = 84,
Farm = 85,
BonemealableFeaturePlacer = 86,
Fence = 87,
FenceGate = 88,
Fire = 89,
FireflyBush = 90,
Flower = 91,
FlowerPot = 92,
Frogspawn = 93,
FrostedIce = 94,
Fungus = 95,
Furnace = 96,
GlazedTerracotta = 97,
GlowLichen = 98,
Grass = 99,
Grindstone = 100,
HalfTransparent = 101,
HangingMoss = 102,
HangingRoots = 103,
Hay = 104,
HeavyCore = 105,
Honey = 106,
Hopper = 107,
HugeMushroom = 108,
Ice = 109,
Infested = 110,
InfestedRotatedPillar = 111,
IronBars = 112,
JackOLantern = 113,
Jigsaw = 114,
Jukebox = 115,
Kelp = 116,
KelpPlant = 117,
Ladder = 118,
Lantern = 119,
LavaCauldron = 120,
LayeredCauldron = 121,
LeafLitter = 122,
Lectern = 123,
Lever = 124,
Light = 125,
LightningRod = 126,
Liquid = 127,
Loom = 128,
Magma = 129,
MangroveLeaves = 130,
MangrovePropagule = 131,
MangroveRoots = 132,
MossyCarpet = 133,
MovingPiston = 134,
Mud = 135,
Multiface = 136,
Mushroom = 137,
Mycelium = 138,
NetherPortal = 139,
Netherrack = 140,
NetherSprouts = 141,
NetherWart = 142,
Note = 143,
Nylium = 144,
Observer = 145,
Piglinwallskull = 146,
FlowerBed = 147,
PistonBase = 148,
PistonHead = 149,
PitcherCrop = 150,
PlayerHead = 151,
PlayerWallHead = 152,
PointedDripstone = 153,
Potato = 154,
PowderSnow = 155,
Powered = 156,
PoweredRail = 157,
PressurePlate = 158,
Pumpkin = 159,
Rail = 160,
RedstoneLamp = 161,
RedstoneOre = 162,
RedstoneTorch = 163,
RedstoneWallTorch = 164,
RedstoneWire = 165,
Repeater = 166,
RespawnAnchor = 167,
RootedDirt = 168,
Roots = 169,
RotatedPillar = 170,
Sapling = 171,
Sand = 172,
Scaffolding = 173,
SculkCatalyst = 174,
Sculk = 175,
SculkSensor = 176,
SculkShrieker = 177,
SculkVein = 178,
Seagrass = 179,
SeaPickle = 180,
Shelf = 181,
ShortDryGrass = 182,
ShulkerBox = 183,
Skull = 184,
Slab = 185,
Slime = 186,
SmallDripleaf = 187,
SmithingTable = 188,
Smoker = 189,
SnifferEgg = 190,
SnowLayer = 191,
SnowyDirt = 192,
SoulFire = 193,
SoulSand = 194,
Spawner = 195,
CreakingHeart = 196,
Sponge = 197,
SporeBlossom = 198,
StainedGlassPane = 199,
StainedGlass = 200,
Stair = 201,
StandingSign = 202,
Stem = 203,
Stonecutter = 204,
Structure = 205,
StructureVoid = 206,
SugarCane = 207,
SweetBerryBush = 208,
TallDryGrass = 209,
TallFlower = 210,
TallGrass = 211,
TallSeagrass = 212,
Target = 213,
Test = 214,
TestInstance = 215,
TintedGlass = 216,
TintedParticleLeaves = 217,
Tnt = 218,
TorchflowerCrop = 219,
Torch = 220,
Transparent = 221,
Trapdoor = 222,
TrappedChest = 223,
TrialSpawner = 224,
TripWireHook = 225,
Tripwire = 226,
TurtleEgg = 227,
TwistingVinesPlant = 228,
TwistingVines = 229,
UntintedParticleLeaves = 230,
Vault = 231,
Vine = 232,
WallBanner = 233,
WallHangingSign = 234,
WallSign = 235,
WallSkull = 236,
WallTorch = 237,
Wall = 238,
Waterlily = 239,
WaterloggedTransparent = 240,
WeatheringCopperBar = 241,
WeatheringCopperBulb = 242,
WeatheringCopperChain = 243,
WeatheringCopperChest = 244,
WeatheringCopperDoor = 245,
WeatheringCopperFull = 246,
WeatheringCopperGolemStatue = 247,
WeatheringCopperGrate = 248,
WeatheringCopperSlab = 249,
WeatheringCopperStair = 250,
WeatheringCopperTrapDoor = 251,
WeatheringLantern = 252,
WeatheringLightningRod = 253,
Web = 254,
WeepingVinesPlant = 255,
WeepingVines = 256,
WeightedPressurePlate = 257,
WetSponge = 258,
WitherRose = 259,
WitherSkull = 260,
WitherWallSkull = 261,
WoolCarpet = 262,
}
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
Bush = 27
Button = 28
Cactus = 29
CactusFlower = 30
Cake = 31
CalibratedSculkSensor = 32
Campfire = 33
CandleCake = 34
Candle = 35
Carpet = 36
Carrot = 37
CartographyTable = 38
Cauldron = 39
CaveVines = 40
CaveVinesPlant = 41
CeilingHangingSign = 42
Chain = 43
Chest = 44
ChiseledBookShelf = 45
ChorusFlower = 46
ChorusPlant = 47
Cocoa = 48
ColoredFalling = 49
Command = 50
Comparator = 51
Composter = 52
ConcretePowder = 53
Conduit = 54
CopperBulbBlock = 55
CopperChest = 56
CopperGolemStatue = 57
Coral = 58
CoralFan = 59
CoralPlant = 60
CoralWallFan = 61
Crafter = 62
CraftingTable = 63
Crop = 64
CryingObsidian = 65
DaylightDetector = 66
DryVegetation = 67
DecoratedPot = 68
DetectorRail = 69
DirtPath = 70
Dispenser = 71
Door = 72
DoublePlant = 73
DragonEgg = 74
DriedGhast = 75
DropExperience = 76
Dropper = 77
EnchantmentTable = 78
EnderChest = 79
EndGateway = 80
EndPortal = 81
EndPortalFrame = 82
EndRod = 83
Eyeblossom = 84
Farm = 85
BonemealableFeaturePlacer = 86
Fence = 87
FenceGate = 88
Fire = 89
FireflyBush = 90
Flower = 91
FlowerPot = 92
Frogspawn = 93
FrostedIce = 94
Fungus = 95
Furnace = 96
GlazedTerracotta = 97
GlowLichen = 98
Grass = 99
Grindstone = 100
HalfTransparent = 101
HangingMoss = 102
HangingRoots = 103
Hay = 104
HeavyCore = 105
Honey = 106
Hopper = 107
HugeMushroom = 108
Ice = 109
Infested = 110
InfestedRotatedPillar = 111
IronBars = 112
JackOLantern = 113
Jigsaw = 114
Jukebox = 115
Kelp = 116
KelpPlant = 117
Ladder = 118
Lantern = 119
LavaCauldron = 120
LayeredCauldron = 121
LeafLitter = 122
Lectern = 123
Lever = 124
Light = 125
LightningRod = 126
Liquid = 127
Loom = 128
Magma = 129
MangroveLeaves = 130
MangrovePropagule = 131
MangroveRoots = 132
MossyCarpet = 133
MovingPiston = 134
Mud = 135
Multiface = 136
Mushroom = 137
Mycelium = 138
NetherPortal = 139
Netherrack = 140
NetherSprouts = 141
NetherWart = 142
Note = 143
Nylium = 144
Observer = 145
Piglinwallskull = 146
FlowerBed = 147
PistonBase = 148
PistonHead = 149
PitcherCrop = 150
PlayerHead = 151
PlayerWallHead = 152
PointedDripstone = 153
Potato = 154
PowderSnow = 155
Powered = 156
PoweredRail = 157
PressurePlate = 158
Pumpkin = 159
Rail = 160
RedstoneLamp = 161
RedstoneOre = 162
RedstoneTorch = 163
RedstoneWallTorch = 164
RedstoneWire = 165
Repeater = 166
RespawnAnchor = 167
RootedDirt = 168
Roots = 169
RotatedPillar = 170
Sapling = 171
Sand = 172
Scaffolding = 173
SculkCatalyst = 174
Sculk = 175
SculkSensor = 176
SculkShrieker = 177
SculkVein = 178
Seagrass = 179
SeaPickle = 180
Shelf = 181
ShortDryGrass = 182
ShulkerBox = 183
Skull = 184
Slab = 185
Slime = 186
SmallDripleaf = 187
SmithingTable = 188
Smoker = 189
SnifferEgg = 190
SnowLayer = 191
SnowyDirt = 192
SoulFire = 193
SoulSand = 194
Spawner = 195
CreakingHeart = 196
Sponge = 197
SporeBlossom = 198
StainedGlassPane = 199
StainedGlass = 200
Stair = 201
StandingSign = 202
Stem = 203
Stonecutter = 204
Structure = 205
StructureVoid = 206
SugarCane = 207
SweetBerryBush = 208
TallDryGrass = 209
TallFlower = 210
TallGrass = 211
TallSeagrass = 212
Target = 213
Test = 214
TestInstance = 215
TintedGlass = 216
TintedParticleLeaves = 217
Tnt = 218
TorchflowerCrop = 219
Torch = 220
Transparent = 221
Trapdoor = 222
TrappedChest = 223
TrialSpawner = 224
TripWireHook = 225
Tripwire = 226
TurtleEgg = 227
TwistingVinesPlant = 228
TwistingVines = 229
UntintedParticleLeaves = 230
Vault = 231
Vine = 232
WallBanner = 233
WallHangingSign = 234
WallSign = 235
WallSkull = 236
WallTorch = 237
Wall = 238
Waterlily = 239
WaterloggedTransparent = 240
WeatheringCopperBar = 241
WeatheringCopperBulb = 242
WeatheringCopperChain = 243
WeatheringCopperChest = 244
WeatheringCopperDoor = 245
WeatheringCopperFull = 246
WeatheringCopperGolemStatue = 247
WeatheringCopperGrate = 248
WeatheringCopperSlab = 249
WeatheringCopperStair = 250
WeatheringCopperTrapDoor = 251
WeatheringLantern = 252
WeatheringLightningRod = 253
Web = 254
WeepingVinesPlant = 255
WeepingVines = 256
WeightedPressurePlate = 257
WetSponge = 258
WitherRose = 259
WitherSkull = 260
WitherWallSkull = 261
WoolCarpet = 262
Implementations§
Source§impl BlockKind
impl BlockKind
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Trait Implementations§
Source§impl AzaleaRead for BlockKind
impl AzaleaRead for BlockKind
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for BlockKind
impl AzaleaWrite for BlockKind
Source§impl<'de> Deserialize<'de> for BlockKind
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for BlockKind
Available on crate feature
serde
only.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 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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.