BlockKind

Enum BlockKind 

Source
#[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

Source

pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>

Source§

impl BlockKind

Source

pub unsafe fn from_u32_unchecked(id: u32) -> Self

Transmutes a u32 to a BlockKind.

§Safety

The id should be at most 262.

Source

pub fn is_valid_id(id: u32) -> bool

Trait Implementations§

Source§

impl AzaleaRead for BlockKind

Source§

fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl AzaleaWrite for BlockKind

Source§

fn azalea_write(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl Clone for BlockKind

Source§

fn clone(&self) -> BlockKind

Returns a duplicate 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 BlockKind

Source§

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

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

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>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for BlockKind

Source§

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

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

impl FromNbtTag for BlockKind

Source§

fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>

§

fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>

Source§

impl FromStr for BlockKind

Source§

type Err = String

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for BlockKind

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 BlockKind

Source§

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

Source§

fn from_u32(value: u32) -> Option<Self>

Source§

fn to_u32(&self) -> u32

Source§

impl Serialize for BlockKind

Available on crate feature serde only.
Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl ToNbtTag for BlockKind

Source§

fn to_nbt_tag(self) -> NbtTag

§

fn to_optional_nbt_tag(self) -> Option<NbtTag>

Source§

impl TryFrom<u32> for BlockKind

Source§

fn try_from(id: u32) -> Result<Self, Self::Error>

Safely transmutes a u32 to a BlockKind.

Source§

type Error = ()

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

impl Copy for BlockKind

Source§

impl Eq for BlockKind

Source§

impl StructuralPartialEq for BlockKind

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, dest: *mut u8)

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

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,